summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--33.patch139
-rw-r--r--PHPINFO4
-rw-r--r--REFLECTION1130
-rw-r--r--php-pecl-pq.spec214
5 files changed, 794 insertions, 695 deletions
diff --git a/.gitignore b/.gitignore
index 1ab5c4f..01f0400 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,7 @@
+clog
package-*.xml
*.tgz
+*.tar.bz2
*.tar.gz
*.tar.xz
*.tar.xz.asc
diff --git a/33.patch b/33.patch
deleted file mode 100644
index 28a7491..0000000
--- a/33.patch
+++ /dev/null
@@ -1,139 +0,0 @@
-From b71a5226c19caba947c99500385023fd043f6999 Mon Sep 17 00:00:00 2001
-From: Michael Wallner <mike@php.net>
-Date: Tue, 18 Jun 2019 12:02:30 +0200
-Subject: [PATCH] fix issue #19: Failed test with PgSQL < 9.3
-
----
- src/php_pqres.c | 102 ++++++++++++++++++++++++++++--------------------
- 1 file changed, 60 insertions(+), 42 deletions(-)
-
-diff --git a/src/php_pqres.c b/src/php_pqres.c
-index 849f8bf..3427b38 100644
---- a/src/php_pqres.c
-+++ b/src/php_pqres.c
-@@ -491,65 +491,83 @@ static void php_pqres_object_read_error_message(zval *object, void *o, zval *ret
- }
- }
-
--static void php_pqres_object_read_diag(zval *object, void *o, zval *return_value)
--{
-- php_pqres_object_t *obj = o;
-- int i;
-- struct {
-- char code;
-- const char *const name;
-- } diag[] = {
--#ifdef PG_DIAG_SEVERITY
-- {PG_DIAG_SEVERITY, "severity"},
-+#ifndef PG_DIAG_SEVERITY
-+# define PG_DIAG_SEVERITY 'S'
- #endif
--#ifdef PG_DIAG_SQLSTATE
-- {PG_DIAG_SQLSTATE, "sqlstate"},
-+#ifndef PG_DIAG_SQLSTATE
-+# define PG_DIAG_SQLSTATE 'C'
- #endif
--#ifdef PG_DIAG_MESSAGE_PRIMARY
-- {PG_DIAG_MESSAGE_PRIMARY, "message_primary"},
-+#ifndef PG_DIAG_MESSAGE_PRIMARY
-+# define PG_DIAG_MESSAGE_PRIMARY 'M'
- #endif
--#ifdef PG_DIAG_MESSAGE_DETAIL
-- {PG_DIAG_MESSAGE_DETAIL, "message_detail"},
-+#ifndef PG_DIAG_MESSAGE_DETAIL
-+# define PG_DIAG_MESSAGE_DETAIL 'D'
- #endif
--#ifdef PG_DIAG_MESSAGE_HINT
-- {PG_DIAG_MESSAGE_HINT, "message_hint"},
-+#ifndef PG_DIAG_MESSAGE_HINT
-+# define PG_DIAG_MESSAGE_HINT 'H'
- #endif
--#ifdef PG_DIAG_STATEMENT_POSITION
-- {PG_DIAG_STATEMENT_POSITION,"statement_position"},
-+#ifndef PG_DIAG_STATEMENT_POSITION
-+# define PG_DIAG_STATEMENT_POSITION 'P'
- #endif
--#ifdef PG_DIAG_INTERNAL_POSITION
-- {PG_DIAG_INTERNAL_POSITION, "internal_position"},
-+#ifndef PG_DIAG_INTERNAL_POSITION
-+# define PG_DIAG_INTERNAL_POSITION 'p'
- #endif
--#ifdef PG_DIAG_INTERNAL_QUERY
-- {PG_DIAG_INTERNAL_QUERY, "internal_query"},
-+#ifndef PG_DIAG_INTERNAL_QUERY
-+# define PG_DIAG_INTERNAL_QUERY 'q'
- #endif
--#ifdef PG_DIAG_CONTEXT
-- {PG_DIAG_CONTEXT, "context"},
-+#ifndef PG_DIAG_CONTEXT
-+# define PG_DIAG_CONTEXT 'W'
- #endif
--#ifdef PG_DIAG_SCHEMA_NAME
-- {PG_DIAG_SCHEMA_NAME, "schema_name"},
-+#ifndef PG_DIAG_SCHEMA_NAME
-+# define PG_DIAG_SCHEMA_NAME 's'
- #endif
--#ifdef PG_DIAG_TABLE_NAME
-- {PG_DIAG_TABLE_NAME, "table_name"},
-+#ifndef PG_DIAG_TABLE_NAME
-+# define PG_DIAG_TABLE_NAME 't'
- #endif
--#ifdef PG_DIAG_COLUMN_NAME
-- {PG_DIAG_COLUMN_NAME, "column_name"},
-+#ifndef PG_DIAG_COLUMN_NAME
-+# define PG_DIAG_COLUMN_NAME 'c'
- #endif
--#ifdef PG_DIAG_DATATYPE_NAME
-- {PG_DIAG_DATATYPE_NAME, "datatype_name"},
-+#ifndef PG_DIAG_DATATYPE_NAME
-+# define PG_DIAG_DATATYPE_NAME 'd'
- #endif
--#ifdef PG_DIAG_CONSTRAINT_NAME
-- {PG_DIAG_CONSTRAINT_NAME, "constraint_name"},
-+#ifndef PG_DIAG_CONSTRAINT_NAME
-+# define PG_DIAG_CONSTRAINT_NAME 'n'
- #endif
--#ifdef PG_DIAG_SOURCE_FILE
-- {PG_DIAG_SOURCE_FILE, "source_file"},
-+#ifndef PG_DIAG_SOURCE_FILE
-+# define PG_DIAG_SOURCE_FILE 'F'
- #endif
--#ifdef PG_DIAG_SOURCE_LINE
-- {PG_DIAG_SOURCE_LINE, "source_line"},
-+#ifndef PG_DIAG_SOURCE_LINE
-+# define PG_DIAG_SOURCE_LINE 'L'
- #endif
--#ifdef PG_DIAG_SOURCE_FUNCTION
-- {PG_DIAG_SOURCE_FUNCTION, "source_function"},
-+#ifndef PG_DIAG_SOURCE_FUNCTION
-+# define PG_DIAG_SOURCE_FUNCTION 'R'
- #endif
-+
-+static void php_pqres_object_read_diag(zval *object, void *o, zval *return_value)
-+{
-+ php_pqres_object_t *obj = o;
-+ int i;
-+ struct {
-+ char code;
-+ const char *const name;
-+ } diag[] = {
-+ {PG_DIAG_SEVERITY, "severity"},
-+ {PG_DIAG_SQLSTATE, "sqlstate"},
-+ {PG_DIAG_MESSAGE_PRIMARY, "message_primary"},
-+ {PG_DIAG_MESSAGE_DETAIL, "message_detail"},
-+ {PG_DIAG_MESSAGE_HINT, "message_hint"},
-+ {PG_DIAG_STATEMENT_POSITION,"statement_position"},
-+ {PG_DIAG_INTERNAL_POSITION, "internal_position"},
-+ {PG_DIAG_INTERNAL_QUERY, "internal_query"},
-+ {PG_DIAG_CONTEXT, "context"},
-+ {PG_DIAG_SCHEMA_NAME, "schema_name"},
-+ {PG_DIAG_TABLE_NAME, "table_name"},
-+ {PG_DIAG_COLUMN_NAME, "column_name"},
-+ {PG_DIAG_DATATYPE_NAME, "datatype_name"},
-+ {PG_DIAG_CONSTRAINT_NAME, "constraint_name"},
-+ {PG_DIAG_SOURCE_FILE, "source_file"},
-+ {PG_DIAG_SOURCE_LINE, "source_line"},
-+ {PG_DIAG_SOURCE_FUNCTION, "source_function"},
- };
-
- array_init_size(return_value, 32);
diff --git a/PHPINFO b/PHPINFO
index 1fcbe86..4e81375 100644
--- a/PHPINFO
+++ b/PHPINFO
@@ -2,7 +2,7 @@
pq
PQ Support => enabled
-Extension Version => 2.1.5
+Extension Version => 2.2.3
Used Library => Compiled => Linked
-libpq => 10.6 => 10.0.6
+libpq => 15.3 => 15.3
diff --git a/REFLECTION b/REFLECTION
index 40686f7..bff0994 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,4 +1,4 @@
-Extension [ <persistent> extension #194 pq version 2.1.5 ] {
+Extension [ <persistent> extension #89 pq version 2.2.3 ] {
- Dependencies {
Dependency [ raphf (Required) ]
@@ -46,12 +46,13 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
}
}
- Class [ <internal:pq> class pq\DateTime extends DateTime implements DateTimeInterface, JsonSerializable ] {
+ Class [ <internal:pq> class pq\DateTime extends DateTime implements Stringable, DateTimeInterface, JsonSerializable ] {
- - Constants [13] {
+ - Constants [14] {
Constant [ public string ATOM ] { Y-m-d\TH:i:sP }
Constant [ public string COOKIE ] { l, d-M-Y H:i:s T }
Constant [ public string ISO8601 ] { Y-m-d\TH:i:sO }
+ Constant [ public string ISO8601_EXPANDED ] { X-m-d\TH:i:sP }
Constant [ public string RFC822 ] { D, d M y H:i:s O }
Constant [ public string RFC850 ] { l, d-M-y H:i:s T }
Constant [ public string RFC1036 ] { D, d M y H:i:s O }
@@ -67,164 +68,221 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
- Static properties [0] {
}
- - Static methods [3] {
- Method [ <internal:pq, overwrites TimecopDateTime, prototype DateTimeImmutable> static public method createFromFormat ] {
+ - Static methods [5] {
+ Method [ <internal:pq, overwrites DateTime, prototype DateTime> static public method createFromFormat ] {
- Parameters [3] {
Parameter #0 [ <required> $format ]
Parameter #1 [ <required> $datetime ]
- Parameter #2 [ <optional> DateTimeZone or NULL $object ]
+ Parameter #2 [ <optional> ?DateTimeZone $object = <default> ]
}
+ - Tentative return [ DateTime|false ]
}
Method [ <internal:date, inherits DateTime> static public method __set_state ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $array ]
+ }
+ - Tentative return [ DateTime ]
+ }
+
+ Method [ <internal:date, inherits DateTime> static public method createFromImmutable ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> DateTimeImmutable $object ]
+ }
+ - Tentative return [ static ]
+ }
+
+ Method [ <internal:date, inherits DateTime> static public method createFromInterface ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> DateTimeInterface $object ]
+ }
+ - Return [ DateTime ]
}
Method [ <internal:date, inherits DateTime> static public method getLastErrors ] {
- Parameters [0] {
}
+ - Tentative return [ array|false ]
}
}
- Properties [1] {
- Property [ <default> public $format ]
+ Property [ public $format = 'Y-m-d H:i:s.uO' ]
}
- - Methods [17] {
- Method [ <internal:pq> public method __toString ] {
+ - Methods [19] {
+ Method [ <internal:pq, prototype Stringable> public method __toString ] {
- Parameters [0] {
}
+ - Return [ string ]
}
Method [ <internal:pq, prototype JsonSerializable> public method jsonSerialize ] {
- Parameters [0] {
}
+ - Tentative return [ mixed ]
}
Method [ <internal:date, inherits DateTime, ctor> public method __construct ] {
- Parameters [2] {
- Parameter #0 [ <optional> $time ]
- Parameter #1 [ <optional> $timezone ]
+ Parameter #0 [ <optional> string $datetime = "now" ]
+ Parameter #1 [ <optional> ?DateTimeZone $timezone = null ]
}
}
+ Method [ <internal:date, inherits DateTime, prototype DateTimeInterface> public method __serialize ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
+
+ Method [ <internal:date, inherits DateTime, prototype DateTimeInterface> public method __unserialize ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $data ]
+ }
+ - Return [ void ]
+ }
+
Method [ <internal:date, inherits DateTime, prototype DateTimeInterface> public method __wakeup ] {
+
+ - Parameters [0] {
+ }
+ - Tentative return [ void ]
}
Method [ <internal:date, inherits DateTime, prototype DateTimeInterface> public method format ] {
- Parameters [1] {
- Parameter #0 [ <required> $format ]
+ Parameter #0 [ <required> string $format ]
}
+ - Tentative return [ string ]
}
Method [ <internal:date, inherits DateTime> public method modify ] {
- Parameters [1] {
- Parameter #0 [ <required> $modify ]
+ Parameter #0 [ <required> string $modifier ]
}
+ - Tentative return [ DateTime|false ]
}
Method [ <internal:date, inherits DateTime> public method add ] {
- Parameters [1] {
- Parameter #0 [ <required> $interval ]
+ Parameter #0 [ <required> DateInterval $interval ]
}
+ - Tentative return [ DateTime ]
}
Method [ <internal:date, inherits DateTime> public method sub ] {
- Parameters [1] {
- Parameter #0 [ <required> $interval ]
+ Parameter #0 [ <required> DateInterval $interval ]
}
+ - Tentative return [ DateTime ]
}
Method [ <internal:date, inherits DateTime, prototype DateTimeInterface> public method getTimezone ] {
- Parameters [0] {
}
+ - Tentative return [ DateTimeZone|false ]
}
Method [ <internal:date, inherits DateTime> public method setTimezone ] {
- Parameters [1] {
- Parameter #0 [ <required> $timezone ]
+ Parameter #0 [ <required> DateTimeZone $timezone ]
}
+ - Tentative return [ DateTime ]
}
Method [ <internal:date, inherits DateTime, prototype DateTimeInterface> public method getOffset ] {
- Parameters [0] {
}
+ - Tentative return [ int ]
}
Method [ <internal:date, inherits DateTime> public method setTime ] {
- Parameters [4] {
- Parameter #0 [ <required> $hour ]
- Parameter #1 [ <required> $minute ]
- Parameter #2 [ <optional> $second ]
- Parameter #3 [ <optional> $microseconds ]
+ Parameter #0 [ <required> int $hour ]
+ Parameter #1 [ <required> int $minute ]
+ Parameter #2 [ <optional> int $second = 0 ]
+ Parameter #3 [ <optional> int $microsecond = 0 ]
}
+ - Tentative return [ DateTime ]
}
Method [ <internal:date, inherits DateTime> public method setDate ] {
- Parameters [3] {
- Parameter #0 [ <required> $year ]
- Parameter #1 [ <required> $month ]
- Parameter #2 [ <required> $day ]
+ Parameter #0 [ <required> int $year ]
+ Parameter #1 [ <required> int $month ]
+ Parameter #2 [ <required> int $day ]
}
+ - Tentative return [ DateTime ]
}
Method [ <internal:date, inherits DateTime> public method setISODate ] {
- Parameters [3] {
- Parameter #0 [ <required> $year ]
- Parameter #1 [ <required> $week ]
- Parameter #2 [ <optional> $day ]
+ Parameter #0 [ <required> int $year ]
+ Parameter #1 [ <required> int $week ]
+ Parameter #2 [ <optional> int $dayOfWeek = 1 ]
}
+ - Tentative return [ DateTime ]
}
Method [ <internal:date, inherits DateTime> public method setTimestamp ] {
- Parameters [1] {
- Parameter #0 [ <required> $unixtimestamp ]
+ Parameter #0 [ <required> int $timestamp ]
}
+ - Tentative return [ DateTime ]
}
Method [ <internal:date, inherits DateTime, prototype DateTimeInterface> public method getTimestamp ] {
- Parameters [0] {
}
+ - Tentative return [ int ]
}
Method [ <internal:date, inherits DateTime, prototype DateTimeInterface> public method diff ] {
- Parameters [2] {
- Parameter #0 [ <required> $object ]
- Parameter #1 [ <optional> $absolute ]
+ Parameter #0 [ <required> DateTimeInterface $targetObject ]
+ Parameter #1 [ <optional> bool $absolute = false ]
}
+ - Tentative return [ DateInterval ]
}
}
}
- Interface [ <internal:pq> interface pq\Exception extends Throwable ] {
+ Interface [ <internal:pq> interface pq\Exception extends Throwable, Stringable ] {
- Constants [9] {
- Constant [ public integer INVALID_ARGUMENT ] { 0 }
- Constant [ public integer RUNTIME ] { 1 }
- Constant [ public integer CONNECTION_FAILED ] { 2 }
- Constant [ public integer IO ] { 3 }
- Constant [ public integer ESCAPE ] { 4 }
- Constant [ public integer BAD_METHODCALL ] { 5 }
- Constant [ public integer UNINITIALIZED ] { 6 }
- Constant [ public integer DOMAIN ] { 7 }
- Constant [ public integer SQL ] { 8 }
+ Constant [ public int INVALID_ARGUMENT ] { 0 }
+ Constant [ public int RUNTIME ] { 1 }
+ Constant [ public int CONNECTION_FAILED ] { 2 }
+ Constant [ public int IO ] { 3 }
+ Constant [ public int ESCAPE ] { 4 }
+ Constant [ public int BAD_METHODCALL ] { 5 }
+ Constant [ public int UNINITIALIZED ] { 6 }
+ Constant [ public int DOMAIN ] { 7 }
+ Constant [ public int SQL ] { 8 }
}
- Static properties [0] {
@@ -238,43 +296,74 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
- Methods [8] {
Method [ <internal:Core, inherits Throwable> abstract public method getMessage ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
}
Method [ <internal:Core, inherits Throwable> abstract public method getCode ] {
+
+ - Parameters [0] {
+ }
}
Method [ <internal:Core, inherits Throwable> abstract public method getFile ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
}
Method [ <internal:Core, inherits Throwable> abstract public method getLine ] {
+
+ - Parameters [0] {
+ }
+ - Return [ int ]
}
Method [ <internal:Core, inherits Throwable> abstract public method getTrace ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
}
Method [ <internal:Core, inherits Throwable> abstract public method getPrevious ] {
+
+ - Parameters [0] {
+ }
+ - Return [ ?Throwable ]
}
Method [ <internal:Core, inherits Throwable> abstract public method getTraceAsString ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
}
- Method [ <internal:Core, inherits Throwable> abstract public method __toString ] {
+ Method [ <internal:Core, inherits Stringable> abstract public method __toString ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
}
}
}
- Class [ <internal:pq> class pq\Exception\InvalidArgumentException extends InvalidArgumentException implements Throwable, pq\Exception ] {
+ Class [ <internal:pq> class pq\Exception\InvalidArgumentException extends InvalidArgumentException implements Throwable, Stringable, pq\Exception ] {
- Constants [9] {
- Constant [ public integer INVALID_ARGUMENT ] { 0 }
- Constant [ public integer RUNTIME ] { 1 }
- Constant [ public integer CONNECTION_FAILED ] { 2 }
- Constant [ public integer IO ] { 3 }
- Constant [ public integer ESCAPE ] { 4 }
- Constant [ public integer BAD_METHODCALL ] { 5 }
- Constant [ public integer UNINITIALIZED ] { 6 }
- Constant [ public integer DOMAIN ] { 7 }
- Constant [ public integer SQL ] { 8 }
+ Constant [ public int INVALID_ARGUMENT ] { 0 }
+ Constant [ public int RUNTIME ] { 1 }
+ Constant [ public int CONNECTION_FAILED ] { 2 }
+ Constant [ public int IO ] { 3 }
+ Constant [ public int ESCAPE ] { 4 }
+ Constant [ public int BAD_METHODCALL ] { 5 }
+ Constant [ public int UNINITIALIZED ] { 6 }
+ Constant [ public int DOMAIN ] { 7 }
+ Constant [ public int SQL ] { 8 }
}
- Static properties [0] {
@@ -284,63 +373,98 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
}
- Properties [4] {
- Property [ <default> protected $message ]
- Property [ <default> protected $code ]
- Property [ <default> protected $file ]
- Property [ <default> protected $line ]
+ Property [ protected $message = '' ]
+ Property [ protected $code = 0 ]
+ Property [ protected string $file = '' ]
+ Property [ protected int $line = 0 ]
}
- Methods [10] {
Method [ <internal:Core, inherits Exception, ctor> public method __construct ] {
- Parameters [3] {
- Parameter #0 [ <optional> $message ]
- Parameter #1 [ <optional> $code ]
- Parameter #2 [ <optional> $previous ]
+ Parameter #0 [ <optional> string $message = "" ]
+ Parameter #1 [ <optional> int $code = 0 ]
+ Parameter #2 [ <optional> ?Throwable $previous = null ]
}
}
Method [ <internal:Core, inherits Exception> public method __wakeup ] {
+
+ - Parameters [0] {
+ }
+ - Tentative return [ void ]
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] {
+
+ - Parameters [0] {
+ }
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] {
+
+ - Parameters [0] {
+ }
+ - Return [ int ]
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] {
+
+ - Parameters [0] {
+ }
+ - Return [ ?Throwable ]
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
}
- Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] {
+ Method [ <internal:Core, inherits Exception, prototype Stringable> public method __toString ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
}
}
}
- Class [ <internal:pq> class pq\Exception\RuntimeException extends RuntimeException implements Throwable, pq\Exception ] {
+ Class [ <internal:pq> class pq\Exception\RuntimeException extends RuntimeException implements Stringable, Throwable, pq\Exception ] {
- Constants [9] {
- Constant [ public integer INVALID_ARGUMENT ] { 0 }
- Constant [ public integer RUNTIME ] { 1 }
- Constant [ public integer CONNECTION_FAILED ] { 2 }
- Constant [ public integer IO ] { 3 }
- Constant [ public integer ESCAPE ] { 4 }
- Constant [ public integer BAD_METHODCALL ] { 5 }
- Constant [ public integer UNINITIALIZED ] { 6 }
- Constant [ public integer DOMAIN ] { 7 }
- Constant [ public integer SQL ] { 8 }
+ Constant [ public int INVALID_ARGUMENT ] { 0 }
+ Constant [ public int RUNTIME ] { 1 }
+ Constant [ public int CONNECTION_FAILED ] { 2 }
+ Constant [ public int IO ] { 3 }
+ Constant [ public int ESCAPE ] { 4 }
+ Constant [ public int BAD_METHODCALL ] { 5 }
+ Constant [ public int UNINITIALIZED ] { 6 }
+ Constant [ public int DOMAIN ] { 7 }
+ Constant [ public int SQL ] { 8 }
}
- Static properties [0] {
@@ -350,63 +474,98 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
}
- Properties [4] {
- Property [ <default> protected $message ]
- Property [ <default> protected $code ]
- Property [ <default> protected $file ]
- Property [ <default> protected $line ]
+ Property [ protected $message = '' ]
+ Property [ protected $code = 0 ]
+ Property [ protected string $file = '' ]
+ Property [ protected int $line = 0 ]
}
- Methods [10] {
Method [ <internal:Core, inherits Exception, ctor> public method __construct ] {
- Parameters [3] {
- Parameter #0 [ <optional> $message ]
- Parameter #1 [ <optional> $code ]
- Parameter #2 [ <optional> $previous ]
+ Parameter #0 [ <optional> string $message = "" ]
+ Parameter #1 [ <optional> int $code = 0 ]
+ Parameter #2 [ <optional> ?Throwable $previous = null ]
}
}
Method [ <internal:Core, inherits Exception> public method __wakeup ] {
+
+ - Parameters [0] {
+ }
+ - Tentative return [ void ]
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] {
+
+ - Parameters [0] {
+ }
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] {
+
+ - Parameters [0] {
+ }
+ - Return [ int ]
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] {
+
+ - Parameters [0] {
+ }
+ - Return [ ?Throwable ]
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
}
- Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] {
+ Method [ <internal:Core, inherits Exception, prototype Stringable> public method __toString ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
}
}
}
- Class [ <internal:pq> class pq\Exception\BadMethodCallException extends BadMethodCallException implements Throwable, pq\Exception ] {
+ Class [ <internal:pq> class pq\Exception\BadMethodCallException extends BadMethodCallException implements Stringable, Throwable, pq\Exception ] {
- Constants [9] {
- Constant [ public integer INVALID_ARGUMENT ] { 0 }
- Constant [ public integer RUNTIME ] { 1 }
- Constant [ public integer CONNECTION_FAILED ] { 2 }
- Constant [ public integer IO ] { 3 }
- Constant [ public integer ESCAPE ] { 4 }
- Constant [ public integer BAD_METHODCALL ] { 5 }
- Constant [ public integer UNINITIALIZED ] { 6 }
- Constant [ public integer DOMAIN ] { 7 }
- Constant [ public integer SQL ] { 8 }
+ Constant [ public int INVALID_ARGUMENT ] { 0 }
+ Constant [ public int RUNTIME ] { 1 }
+ Constant [ public int CONNECTION_FAILED ] { 2 }
+ Constant [ public int IO ] { 3 }
+ Constant [ public int ESCAPE ] { 4 }
+ Constant [ public int BAD_METHODCALL ] { 5 }
+ Constant [ public int UNINITIALIZED ] { 6 }
+ Constant [ public int DOMAIN ] { 7 }
+ Constant [ public int SQL ] { 8 }
}
- Static properties [0] {
@@ -416,63 +575,98 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
}
- Properties [4] {
- Property [ <default> protected $message ]
- Property [ <default> protected $code ]
- Property [ <default> protected $file ]
- Property [ <default> protected $line ]
+ Property [ protected $message = '' ]
+ Property [ protected $code = 0 ]
+ Property [ protected string $file = '' ]
+ Property [ protected int $line = 0 ]
}
- Methods [10] {
Method [ <internal:Core, inherits Exception, ctor> public method __construct ] {
- Parameters [3] {
- Parameter #0 [ <optional> $message ]
- Parameter #1 [ <optional> $code ]
- Parameter #2 [ <optional> $previous ]
+ Parameter #0 [ <optional> string $message = "" ]
+ Parameter #1 [ <optional> int $code = 0 ]
+ Parameter #2 [ <optional> ?Throwable $previous = null ]
}
}
Method [ <internal:Core, inherits Exception> public method __wakeup ] {
+
+ - Parameters [0] {
+ }
+ - Tentative return [ void ]
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] {
+
+ - Parameters [0] {
+ }
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] {
+
+ - Parameters [0] {
+ }
+ - Return [ int ]
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] {
+
+ - Parameters [0] {
+ }
+ - Return [ ?Throwable ]
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
}
- Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] {
+ Method [ <internal:Core, inherits Exception, prototype Stringable> public method __toString ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
}
}
}
- Class [ <internal:pq> class pq\Exception\DomainException extends DomainException implements Throwable, pq\Exception ] {
+ Class [ <internal:pq> class pq\Exception\DomainException extends DomainException implements Throwable, Stringable, pq\Exception ] {
- Constants [9] {
- Constant [ public integer INVALID_ARGUMENT ] { 0 }
- Constant [ public integer RUNTIME ] { 1 }
- Constant [ public integer CONNECTION_FAILED ] { 2 }
- Constant [ public integer IO ] { 3 }
- Constant [ public integer ESCAPE ] { 4 }
- Constant [ public integer BAD_METHODCALL ] { 5 }
- Constant [ public integer UNINITIALIZED ] { 6 }
- Constant [ public integer DOMAIN ] { 7 }
- Constant [ public integer SQL ] { 8 }
+ Constant [ public int INVALID_ARGUMENT ] { 0 }
+ Constant [ public int RUNTIME ] { 1 }
+ Constant [ public int CONNECTION_FAILED ] { 2 }
+ Constant [ public int IO ] { 3 }
+ Constant [ public int ESCAPE ] { 4 }
+ Constant [ public int BAD_METHODCALL ] { 5 }
+ Constant [ public int UNINITIALIZED ] { 6 }
+ Constant [ public int DOMAIN ] { 7 }
+ Constant [ public int SQL ] { 8 }
}
- Static properties [0] {
@@ -482,77 +676,115 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
}
- Properties [5] {
- Property [ <default> protected $message ]
- Property [ <default> protected $code ]
- Property [ <default> protected $file ]
- Property [ <default> protected $line ]
- Property [ <default> public $sqlstate ]
+ Property [ protected $message = '' ]
+ Property [ protected $code = 0 ]
+ Property [ protected string $file = '' ]
+ Property [ protected int $line = 0 ]
+ Property [ public $sqlstate = NULL ]
}
- Methods [10] {
Method [ <internal:Core, inherits Exception, ctor> public method __construct ] {
- Parameters [3] {
- Parameter #0 [ <optional> $message ]
- Parameter #1 [ <optional> $code ]
- Parameter #2 [ <optional> $previous ]
+ Parameter #0 [ <optional> string $message = "" ]
+ Parameter #1 [ <optional> int $code = 0 ]
+ Parameter #2 [ <optional> ?Throwable $previous = null ]
}
}
Method [ <internal:Core, inherits Exception> public method __wakeup ] {
+
+ - Parameters [0] {
+ }
+ - Tentative return [ void ]
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] {
+
+ - Parameters [0] {
+ }
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] {
+
+ - Parameters [0] {
+ }
+ - Return [ int ]
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] {
+
+ - Parameters [0] {
+ }
+ - Return [ ?Throwable ]
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
}
- Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] {
+ Method [ <internal:Core, inherits Exception, prototype Stringable> public method __toString ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
}
}
}
Class [ <internal:pq> class pq\Connection ] {
- - Constants [22] {
- Constant [ public integer OK ] { 0 }
- Constant [ public integer BAD ] { 1 }
- Constant [ public integer STARTED ] { 2 }
- Constant [ public integer MADE ] { 3 }
- Constant [ public integer AWAITING_RESPONSE ] { 4 }
- Constant [ public integer AUTH_OK ] { 5 }
- Constant [ public integer SSL_STARTUP ] { 7 }
- Constant [ public integer SETENV ] { 6 }
- Constant [ public integer TRANS_IDLE ] { 0 }
- Constant [ public integer TRANS_ACTIVE ] { 1 }
- Constant [ public integer TRANS_INTRANS ] { 2 }
- Constant [ public integer TRANS_INERROR ] { 3 }
- Constant [ public integer TRANS_UNKNOWN ] { 4 }
- Constant [ public integer POLLING_FAILED ] { 0 }
- Constant [ public integer POLLING_READING ] { 1 }
- Constant [ public integer POLLING_WRITING ] { 2 }
- Constant [ public integer POLLING_OK ] { 3 }
+ - Constants [25] {
+ Constant [ public int OK ] { 0 }
+ Constant [ public int BAD ] { 1 }
+ Constant [ public int STARTED ] { 2 }
+ Constant [ public int MADE ] { 3 }
+ Constant [ public int AWAITING_RESPONSE ] { 4 }
+ Constant [ public int AUTH_OK ] { 5 }
+ Constant [ public int SSL_STARTUP ] { 7 }
+ Constant [ public int SETENV ] { 6 }
+ Constant [ public int CHECK_WRITABLE ] { 9 }
+ Constant [ public int CONSUME ] { 10 }
+ Constant [ public int GSS_STARTUP ] { 11 }
+ Constant [ public int TRANS_IDLE ] { 0 }
+ Constant [ public int TRANS_ACTIVE ] { 1 }
+ Constant [ public int TRANS_INTRANS ] { 2 }
+ Constant [ public int TRANS_INERROR ] { 3 }
+ Constant [ public int TRANS_UNKNOWN ] { 4 }
+ Constant [ public int POLLING_FAILED ] { 0 }
+ Constant [ public int POLLING_READING ] { 1 }
+ Constant [ public int POLLING_WRITING ] { 2 }
+ Constant [ public int POLLING_OK ] { 3 }
Constant [ public string EVENT_NOTICE ] { notice }
Constant [ public string EVENT_RESULT ] { result }
Constant [ public string EVENT_RESET ] { reset }
- Constant [ public integer ASYNC ] { 1 }
- Constant [ public integer PERSISTENT ] { 2 }
+ Constant [ public int ASYNC ] { 1 }
+ Constant [ public int PERSISTENT ] { 2 }
}
- Static properties [0] {
@@ -561,30 +793,33 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
- Static methods [0] {
}
- - Properties [23] {
- Property [ <default> public $status ]
- Property [ <default> public $transactionStatus ]
- Property [ <default> public $socket ]
- Property [ <default> public $errorMessage ]
- Property [ <default> public $busy ]
- Property [ <default> public $encoding ]
- Property [ <default> public $unbuffered ]
- Property [ <default> public $nonblocking ]
- Property [ <default> public $db ]
- Property [ <default> public $user ]
- Property [ <default> public $pass ]
- Property [ <default> public $host ]
- Property [ <default> public $port ]
- Property [ <default> public $params ]
- Property [ <default> public $options ]
- Property [ <default> public $eventHandlers ]
- Property [ <default> public $listeners ]
- Property [ <default> public $converters ]
- Property [ <default> public $defaultFetchType ]
- Property [ <default> public $defaultTransactionIsolation ]
- Property [ <default> public $defaultTransactionReadonly ]
- Property [ <default> public $defaultTransactionDeferrable ]
- Property [ <default> public $defaultAutoConvert ]
+ - Properties [26] {
+ Property [ public $status = 1 ]
+ Property [ public $transactionStatus = 4 ]
+ Property [ public $socket = NULL ]
+ Property [ public $errorMessage = NULL ]
+ Property [ public $busy = false ]
+ Property [ public $encoding = NULL ]
+ Property [ public $unbuffered = false ]
+ Property [ public $nonblocking = false ]
+ Property [ public $db = NULL ]
+ Property [ public $user = NULL ]
+ Property [ public $pass = NULL ]
+ Property [ public $host = NULL ]
+ Property [ public $port = NULL ]
+ Property [ public $params = NULL ]
+ Property [ public $options = NULL ]
+ Property [ public $eventHandlers = NULL ]
+ Property [ public $listeners = NULL ]
+ Property [ public $converters = NULL ]
+ Property [ public $defaultFetchType = 0 ]
+ Property [ public $defaultTransactionIsolation = 0 ]
+ Property [ public $defaultTransactionReadonly = false ]
+ Property [ public $defaultTransactionDeferrable = false ]
+ Property [ public $defaultAutoConvert = 65535 ]
+ Property [ public readonly $libraryVersion = NULL ]
+ Property [ public readonly $protocolVersion = NULL ]
+ Property [ public readonly $serverVersion = NULL ]
}
- Methods [31] {
@@ -592,7 +827,7 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
- Parameters [2] {
Parameter #0 [ <required> $dsn ]
- Parameter #1 [ <optional> $flags ]
+ Parameter #1 [ <optional> $flags = <default> ]
}
}
@@ -631,7 +866,7 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
- Parameters [2] {
Parameter #0 [ <required> $query ]
- Parameter #1 [ <optional> $callable ]
+ Parameter #1 [ <optional> $callable = <default> ]
}
}
@@ -640,7 +875,7 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
- Parameters [3] {
Parameter #0 [ <required> $query ]
Parameter #1 [ <required> array $params ]
- Parameter #2 [ <optional> array or NULL $types ]
+ Parameter #2 [ <optional> ?array $types = <default> ]
}
}
@@ -649,8 +884,8 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
- Parameters [4] {
Parameter #0 [ <required> $query ]
Parameter #1 [ <required> array $params ]
- Parameter #2 [ <optional> array or NULL $types ]
- Parameter #3 [ <optional> $callable ]
+ Parameter #2 [ <optional> ?array $types = <default> ]
+ Parameter #3 [ <optional> $callable = <default> ]
}
}
@@ -659,7 +894,7 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
- Parameters [3] {
Parameter #0 [ <required> $name ]
Parameter #1 [ <required> $query ]
- Parameter #2 [ <optional> array or NULL $types ]
+ Parameter #2 [ <optional> ?array $types = <default> ]
}
}
@@ -668,7 +903,7 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
- Parameters [3] {
Parameter #0 [ <required> $name ]
Parameter #1 [ <required> $query ]
- Parameter #2 [ <optional> array or NULL $types ]
+ Parameter #2 [ <optional> ?array $types = <default> ]
}
}
@@ -686,7 +921,7 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
- Parameters [3] {
Parameter #0 [ <required> $name ]
Parameter #1 [ <required> $flags ]
- Parameter #2 [ <optional> $query ]
+ Parameter #2 [ <optional> $query = <default> ]
}
}
@@ -715,8 +950,8 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
Method [ <internal:pq> public method listenAsync ] {
- Parameters [2] {
- Parameter #0 [ <optional> $channel ]
- Parameter #1 [ <optional> $callable ]
+ Parameter #0 [ <optional> $channel = <default> ]
+ Parameter #1 [ <optional> $callable = <default> ]
}
}
@@ -773,25 +1008,25 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
Method [ <internal:pq> public method startTransaction ] {
- Parameters [3] {
- Parameter #0 [ <optional> $isolation ]
- Parameter #1 [ <optional> $readonly ]
- Parameter #2 [ <optional> $deferrable ]
+ Parameter #0 [ <optional> $isolation = <default> ]
+ Parameter #1 [ <optional> $readonly = <default> ]
+ Parameter #2 [ <optional> $deferrable = <default> ]
}
}
Method [ <internal:pq> public method startTransactionAsync ] {
- Parameters [3] {
- Parameter #0 [ <optional> $isolation ]
- Parameter #1 [ <optional> $readonly ]
- Parameter #2 [ <optional> $deferrable ]
+ Parameter #0 [ <optional> $isolation = <default> ]
+ Parameter #1 [ <optional> $readonly = <default> ]
+ Parameter #2 [ <optional> $deferrable = <default> ]
}
}
Method [ <internal:pq> public method trace ] {
- Parameters [1] {
- Parameter #0 [ <optional> $stdio_stream ]
+ Parameter #0 [ <optional> $stdio_stream = <default> ]
}
}
@@ -838,7 +1073,7 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
}
- Properties [1] {
- Property [ <default> public $connection ]
+ Property [ public $connection = NULL ]
}
- Methods [2] {
@@ -859,174 +1094,168 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
Class [ <internal:pq> class pq\Types ] {
- - Constants [167] {
- Constant [ public integer BOOL ] { 16 }
- Constant [ public integer BYTEA ] { 17 }
- Constant [ public integer CHAR ] { 18 }
- Constant [ public integer NAME ] { 19 }
- Constant [ public integer INT8 ] { 20 }
- Constant [ public integer INT2 ] { 21 }
- Constant [ public integer INT2VECTOR ] { 22 }
- Constant [ public integer INT4 ] { 23 }
- Constant [ public integer REGPROC ] { 24 }
- Constant [ public integer TEXT ] { 25 }
- Constant [ public integer OID ] { 26 }
- Constant [ public integer TID ] { 27 }
- Constant [ public integer XID ] { 28 }
- Constant [ public integer CID ] { 29 }
- Constant [ public integer OIDVECTOR ] { 30 }
- Constant [ public integer PG_TYPE ] { 71 }
- Constant [ public integer PG_ATTRIBUTE ] { 75 }
- Constant [ public integer PG_PROC ] { 81 }
- Constant [ public integer PG_CLASS ] { 83 }
- Constant [ public integer JSON ] { 114 }
- Constant [ public integer XML ] { 142 }
- Constant [ public integer XMLARRAY ] { 143 }
- Constant [ public integer JSONARRAY ] { 199 }
- Constant [ public integer PG_NODE_TREE ] { 194 }
- Constant [ public integer PG_NDISTINCT ] { 3361 }
- Constant [ public integer PG_DEPENDENCIES ] { 3402 }
- Constant [ public integer PG_DDL_COMMAND ] { 32 }
- Constant [ public integer SMGR ] { 210 }
- Constant [ public integer POINT ] { 600 }
- Constant [ public integer LSEG ] { 601 }
- Constant [ public integer PATH ] { 602 }
- Constant [ public integer BOX ] { 603 }
- Constant [ public integer POLYGON ] { 604 }
- Constant [ public integer LINE ] { 628 }
- Constant [ public integer LINEARRAY ] { 629 }
- Constant [ public integer FLOAT4 ] { 700 }
- Constant [ public integer FLOAT8 ] { 701 }
- Constant [ public integer ABSTIME ] { 702 }
- Constant [ public integer RELTIME ] { 703 }
- Constant [ public integer TINTERVAL ] { 704 }
- Constant [ public integer UNKNOWN ] { 705 }
- Constant [ public integer CIRCLE ] { 718 }
- Constant [ public integer CIRCLEARRAY ] { 719 }
- Constant [ public integer MONEY ] { 790 }
- Constant [ public integer MONEYARRAY ] { 791 }
- Constant [ public integer MACADDR ] { 829 }
- Constant [ public integer INET ] { 869 }
- Constant [ public integer CIDR ] { 650 }
- Constant [ public integer MACADDR8 ] { 774 }
- Constant [ public integer BOOLARRAY ] { 1000 }
- Constant [ public integer BYTEAARRAY ] { 1001 }
- Constant [ public integer CHARARRAY ] { 1002 }
- Constant [ public integer NAMEARRAY ] { 1003 }
- Constant [ public integer INT2ARRAY ] { 1005 }
- Constant [ public integer INT2VECTORARRAY ] { 1006 }
- Constant [ public integer INT4ARRAY ] { 1007 }
- Constant [ public integer REGPROCARRAY ] { 1008 }
- Constant [ public integer TEXTARRAY ] { 1009 }
- Constant [ public integer OIDARRAY ] { 1028 }
- Constant [ public integer TIDARRAY ] { 1010 }
- Constant [ public integer XIDARRAY ] { 1011 }
- Constant [ public integer CIDARRAY ] { 1012 }
- Constant [ public integer OIDVECTORARRAY ] { 1013 }
- Constant [ public integer BPCHARARRAY ] { 1014 }
- Constant [ public integer VARCHARARRAY ] { 1015 }
- Constant [ public integer INT8ARRAY ] { 1016 }
- Constant [ public integer POINTARRAY ] { 1017 }
- Constant [ public integer LSEGARRAY ] { 1018 }
- Constant [ public integer PATHARRAY ] { 1019 }
- Constant [ public integer BOXARRAY ] { 1020 }
- Constant [ public integer FLOAT4ARRAY ] { 1021 }
- Constant [ public integer FLOAT8ARRAY ] { 1022 }
- Constant [ public integer ABSTIMEARRAY ] { 1023 }
- Constant [ public integer RELTIMEARRAY ] { 1024 }
- Constant [ public integer TINTERVALARRAY ] { 1025 }
- Constant [ public integer POLYGONARRAY ] { 1027 }
- Constant [ public integer ACLITEM ] { 1033 }
- Constant [ public integer ACLITEMARRAY ] { 1034 }
- Constant [ public integer MACADDRARRAY ] { 1040 }
- Constant [ public integer MACADDR8ARRAY ] { 775 }
- Constant [ public integer INETARRAY ] { 1041 }
- Constant [ public integer CIDRARRAY ] { 651 }
- Constant [ public integer CSTRINGARRAY ] { 1263 }
- Constant [ public integer BPCHAR ] { 1042 }
- Constant [ public integer VARCHAR ] { 1043 }
- Constant [ public integer DATE ] { 1082 }
- Constant [ public integer TIME ] { 1083 }
- Constant [ public integer TIMESTAMP ] { 1114 }
- Constant [ public integer TIMESTAMPARRAY ] { 1115 }
- Constant [ public integer DATEARRAY ] { 1182 }
- Constant [ public integer TIMEARRAY ] { 1183 }
- Constant [ public integer TIMESTAMPTZ ] { 1184 }
- Constant [ public integer TIMESTAMPTZARRAY ] { 1185 }
- Constant [ public integer INTERVAL ] { 1186 }
- Constant [ public integer INTERVALARRAY ] { 1187 }
- Constant [ public integer NUMERICARRAY ] { 1231 }
- Constant [ public integer TIMETZ ] { 1266 }
- Constant [ public integer TIMETZARRAY ] { 1270 }
- Constant [ public integer BIT ] { 1560 }
- Constant [ public integer BITARRAY ] { 1561 }
- Constant [ public integer VARBIT ] { 1562 }
- Constant [ public integer VARBITARRAY ] { 1563 }
- Constant [ public integer NUMERIC ] { 1700 }
- Constant [ public integer REFCURSOR ] { 1790 }
- Constant [ public integer REFCURSORARRAY ] { 2201 }
- Constant [ public integer REGPROCEDURE ] { 2202 }
- Constant [ public integer REGOPER ] { 2203 }
- Constant [ public integer REGOPERATOR ] { 2204 }
- Constant [ public integer REGCLASS ] { 2205 }
- Constant [ public integer REGTYPE ] { 2206 }
- Constant [ public integer REGROLE ] { 4096 }
- Constant [ public integer REGNAMESPACE ] { 4089 }
- Constant [ public integer REGPROCEDUREARRAY ] { 2207 }
- Constant [ public integer REGOPERARRAY ] { 2208 }
- Constant [ public integer REGOPERATORARRAY ] { 2209 }
- Constant [ public integer REGCLASSARRAY ] { 2210 }
- Constant [ public integer REGTYPEARRAY ] { 2211 }
- Constant [ public integer REGROLEARRAY ] { 4097 }
- Constant [ public integer REGNAMESPACEARRAY ] { 4090 }
- Constant [ public integer UUID ] { 2950 }
- Constant [ public integer UUIDARRAY ] { 2951 }
- Constant [ public integer PG_LSN ] { 3220 }
- Constant [ public integer PG_LSNARRAY ] { 3221 }
- Constant [ public integer TSVECTOR ] { 3614 }
- Constant [ public integer GTSVECTOR ] { 3642 }
- Constant [ public integer TSQUERY ] { 3615 }
- Constant [ public integer REGCONFIG ] { 3734 }
- Constant [ public integer REGDICTIONARY ] { 3769 }
- Constant [ public integer TSVECTORARRAY ] { 3643 }
- Constant [ public integer GTSVECTORARRAY ] { 3644 }
- Constant [ public integer TSQUERYARRAY ] { 3645 }
- Constant [ public integer REGCONFIGARRAY ] { 3735 }
- Constant [ public integer REGDICTIONARYARRAY ] { 3770 }
- Constant [ public integer JSONB ] { 3802 }
- Constant [ public integer JSONBARRAY ] { 3807 }
- Constant [ public integer TXID_SNAPSHOT ] { 2970 }
- Constant [ public integer TXID_SNAPSHOTARRAY ] { 2949 }
- Constant [ public integer INT4RANGE ] { 3904 }
- Constant [ public integer INT4RANGEARRAY ] { 3905 }
- Constant [ public integer NUMRANGE ] { 3906 }
- Constant [ public integer NUMRANGEARRAY ] { 3907 }
- Constant [ public integer TSRANGE ] { 3908 }
- Constant [ public integer TSRANGEARRAY ] { 3909 }
- Constant [ public integer TSTZRANGE ] { 3910 }
- Constant [ public integer TSTZRANGEARRAY ] { 3911 }
- Constant [ public integer DATERANGE ] { 3912 }
- Constant [ public integer DATERANGEARRAY ] { 3913 }
- Constant [ public integer INT8RANGE ] { 3926 }
- Constant [ public integer INT8RANGEARRAY ] { 3927 }
- Constant [ public integer RECORD ] { 2249 }
- Constant [ public integer RECORDARRAY ] { 2287 }
- Constant [ public integer CSTRING ] { 2275 }
- Constant [ public integer ANY ] { 2276 }
- Constant [ public integer ANYARRAY ] { 2277 }
- Constant [ public integer VOID ] { 2278 }
- Constant [ public integer TRIGGER ] { 2279 }
- Constant [ public integer EVENT_TRIGGER ] { 3838 }
- Constant [ public integer LANGUAGE_HANDLER ] { 2280 }
- Constant [ public integer INTERNAL ] { 2281 }
- Constant [ public integer OPAQUE ] { 2282 }
- Constant [ public integer ANYELEMENT ] { 2283 }
- Constant [ public integer ANYNONARRAY ] { 2776 }
- Constant [ public integer ANYENUM ] { 3500 }
- Constant [ public integer FDW_HANDLER ] { 3115 }
- Constant [ public integer INDEX_AM_HANDLER ] { 325 }
- Constant [ public integer TSM_HANDLER ] { 3310 }
- Constant [ public integer ANYRANGE ] { 3831 }
+ - Constants [161] {
+ Constant [ public int BOOL ] { 16 }
+ Constant [ public int BYTEA ] { 17 }
+ Constant [ public int CHAR ] { 18 }
+ Constant [ public int NAME ] { 19 }
+ Constant [ public int INT8 ] { 20 }
+ Constant [ public int INT2 ] { 21 }
+ Constant [ public int INT2VECTOR ] { 22 }
+ Constant [ public int INT4 ] { 23 }
+ Constant [ public int REGPROC ] { 24 }
+ Constant [ public int TEXT ] { 25 }
+ Constant [ public int OID ] { 26 }
+ Constant [ public int TID ] { 27 }
+ Constant [ public int XID ] { 28 }
+ Constant [ public int CID ] { 29 }
+ Constant [ public int OIDVECTOR ] { 30 }
+ Constant [ public int PG_DDL_COMMAND ] { 32 }
+ Constant [ public int PG_TYPE ] { 71 }
+ Constant [ public int PG_ATTRIBUTE ] { 75 }
+ Constant [ public int PG_PROC ] { 81 }
+ Constant [ public int PG_CLASS ] { 83 }
+ Constant [ public int JSON ] { 114 }
+ Constant [ public int XML ] { 142 }
+ Constant [ public int XMLARRAY ] { 143 }
+ Constant [ public int PG_NODE_TREE ] { 194 }
+ Constant [ public int JSONARRAY ] { 199 }
+ Constant [ public int SMGR ] { 210 }
+ Constant [ public int INDEX_AM_HANDLER ] { 325 }
+ Constant [ public int POINT ] { 600 }
+ Constant [ public int LSEG ] { 601 }
+ Constant [ public int PATH ] { 602 }
+ Constant [ public int BOX ] { 603 }
+ Constant [ public int POLYGON ] { 604 }
+ Constant [ public int LINE ] { 628 }
+ Constant [ public int LINEARRAY ] { 629 }
+ Constant [ public int CIDR ] { 650 }
+ Constant [ public int CIDRARRAY ] { 651 }
+ Constant [ public int FLOAT4 ] { 700 }
+ Constant [ public int FLOAT8 ] { 701 }
+ Constant [ public int UNKNOWN ] { 705 }
+ Constant [ public int CIRCLE ] { 718 }
+ Constant [ public int CIRCLEARRAY ] { 719 }
+ Constant [ public int MACADDR8 ] { 774 }
+ Constant [ public int MACADDR8ARRAY ] { 775 }
+ Constant [ public int MONEY ] { 790 }
+ Constant [ public int MONEYARRAY ] { 791 }
+ Constant [ public int MACADDR ] { 829 }
+ Constant [ public int INET ] { 869 }
+ Constant [ public int BOOLARRAY ] { 1000 }
+ Constant [ public int BYTEAARRAY ] { 1001 }
+ Constant [ public int CHARARRAY ] { 1002 }
+ Constant [ public int NAMEARRAY ] { 1003 }
+ Constant [ public int INT2ARRAY ] { 1005 }
+ Constant [ public int INT2VECTORARRAY ] { 1006 }
+ Constant [ public int INT4ARRAY ] { 1007 }
+ Constant [ public int REGPROCARRAY ] { 1008 }
+ Constant [ public int TEXTARRAY ] { 1009 }
+ Constant [ public int TIDARRAY ] { 1010 }
+ Constant [ public int XIDARRAY ] { 1011 }
+ Constant [ public int CIDARRAY ] { 1012 }
+ Constant [ public int OIDVECTORARRAY ] { 1013 }
+ Constant [ public int BPCHARARRAY ] { 1014 }
+ Constant [ public int VARCHARARRAY ] { 1015 }
+ Constant [ public int INT8ARRAY ] { 1016 }
+ Constant [ public int POINTARRAY ] { 1017 }
+ Constant [ public int LSEGARRAY ] { 1018 }
+ Constant [ public int PATHARRAY ] { 1019 }
+ Constant [ public int BOXARRAY ] { 1020 }
+ Constant [ public int FLOAT4ARRAY ] { 1021 }
+ Constant [ public int FLOAT8ARRAY ] { 1022 }
+ Constant [ public int POLYGONARRAY ] { 1027 }
+ Constant [ public int OIDARRAY ] { 1028 }
+ Constant [ public int ACLITEM ] { 1033 }
+ Constant [ public int ACLITEMARRAY ] { 1034 }
+ Constant [ public int MACADDRARRAY ] { 1040 }
+ Constant [ public int INETARRAY ] { 1041 }
+ Constant [ public int BPCHAR ] { 1042 }
+ Constant [ public int VARCHAR ] { 1043 }
+ Constant [ public int DATE ] { 1082 }
+ Constant [ public int TIME ] { 1083 }
+ Constant [ public int TIMESTAMP ] { 1114 }
+ Constant [ public int TIMESTAMPARRAY ] { 1115 }
+ Constant [ public int DATEARRAY ] { 1182 }
+ Constant [ public int TIMEARRAY ] { 1183 }
+ Constant [ public int TIMESTAMPTZ ] { 1184 }
+ Constant [ public int TIMESTAMPTZARRAY ] { 1185 }
+ Constant [ public int INTERVAL ] { 1186 }
+ Constant [ public int INTERVALARRAY ] { 1187 }
+ Constant [ public int NUMERICARRAY ] { 1231 }
+ Constant [ public int CSTRINGARRAY ] { 1263 }
+ Constant [ public int TIMETZ ] { 1266 }
+ Constant [ public int TIMETZARRAY ] { 1270 }
+ Constant [ public int BIT ] { 1560 }
+ Constant [ public int BITARRAY ] { 1561 }
+ Constant [ public int VARBIT ] { 1562 }
+ Constant [ public int VARBITARRAY ] { 1563 }
+ Constant [ public int NUMERIC ] { 1700 }
+ Constant [ public int REFCURSOR ] { 1790 }
+ Constant [ public int REFCURSORARRAY ] { 2201 }
+ Constant [ public int REGPROCEDURE ] { 2202 }
+ Constant [ public int REGOPER ] { 2203 }
+ Constant [ public int REGOPERATOR ] { 2204 }
+ Constant [ public int REGCLASS ] { 2205 }
+ Constant [ public int REGTYPE ] { 2206 }
+ Constant [ public int REGPROCEDUREARRAY ] { 2207 }
+ Constant [ public int REGOPERARRAY ] { 2208 }
+ Constant [ public int REGOPERATORARRAY ] { 2209 }
+ Constant [ public int REGCLASSARRAY ] { 2210 }
+ Constant [ public int REGTYPEARRAY ] { 2211 }
+ Constant [ public int RECORD ] { 2249 }
+ Constant [ public int CSTRING ] { 2275 }
+ Constant [ public int ANY ] { 2276 }
+ Constant [ public int ANYARRAY ] { 2277 }
+ Constant [ public int VOID ] { 2278 }
+ Constant [ public int TRIGGER ] { 2279 }
+ Constant [ public int LANGUAGE_HANDLER ] { 2280 }
+ Constant [ public int INTERNAL ] { 2281 }
+ Constant [ public int OPAQUE ] { 2282 }
+ Constant [ public int ANYELEMENT ] { 2283 }
+ Constant [ public int _RECORD ] { 2287 }
+ Constant [ public int ANYNONARRAY ] { 2776 }
+ Constant [ public int TXID_SNAPSHOTARRAY ] { 2949 }
+ Constant [ public int UUID ] { 2950 }
+ Constant [ public int UUIDARRAY ] { 2951 }
+ Constant [ public int TXID_SNAPSHOT ] { 2970 }
+ Constant [ public int FDW_HANDLER ] { 3115 }
+ Constant [ public int PG_LSN ] { 3220 }
+ Constant [ public int PG_LSNARRAY ] { 3221 }
+ Constant [ public int TSM_HANDLER ] { 3310 }
+ Constant [ public int PG_NDISTINCT ] { 3361 }
+ Constant [ public int PG_DEPENDENCIES ] { 3402 }
+ Constant [ public int ANYENUM ] { 3500 }
+ Constant [ public int TSVECTOR ] { 3614 }
+ Constant [ public int TSQUERY ] { 3615 }
+ Constant [ public int GTSVECTOR ] { 3642 }
+ Constant [ public int TSVECTORARRAY ] { 3643 }
+ Constant [ public int GTSVECTORARRAY ] { 3644 }
+ Constant [ public int TSQUERYARRAY ] { 3645 }
+ Constant [ public int REGCONFIG ] { 3734 }
+ Constant [ public int REGCONFIGARRAY ] { 3735 }
+ Constant [ public int REGDICTIONARY ] { 3769 }
+ Constant [ public int REGDICTIONARYARRAY ] { 3770 }
+ Constant [ public int JSONB ] { 3802 }
+ Constant [ public int JSONBARRAY ] { 3807 }
+ Constant [ public int ANYRANGE ] { 3831 }
+ Constant [ public int EVENT_TRIGGER ] { 3838 }
+ Constant [ public int INT4RANGE ] { 3904 }
+ Constant [ public int INT4RANGEARRAY ] { 3905 }
+ Constant [ public int NUMRANGE ] { 3906 }
+ Constant [ public int NUMRANGEARRAY ] { 3907 }
+ Constant [ public int TSRANGE ] { 3908 }
+ Constant [ public int TSRANGEARRAY ] { 3909 }
+ Constant [ public int TSTZRANGE ] { 3910 }
+ Constant [ public int TSTZRANGEARRAY ] { 3911 }
+ Constant [ public int DATERANGE ] { 3912 }
+ Constant [ public int DATERANGEARRAY ] { 3913 }
+ Constant [ public int INT8RANGE ] { 3926 }
+ Constant [ public int INT8RANGEARRAY ] { 3927 }
+ Constant [ public int REGNAMESPACE ] { 4089 }
+ Constant [ public int REGNAMESPACEARRAY ] { 4090 }
+ Constant [ public int REGROLE ] { 4096 }
+ Constant [ public int REGROLEARRAY ] { 4097 }
}
- Static properties [0] {
@@ -1036,7 +1265,7 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
}
- Properties [1] {
- Property [ <default> public $connection ]
+ Property [ public $connection = NULL ]
}
- Methods [2] {
@@ -1044,43 +1273,44 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
- Parameters [2] {
Parameter #0 [ <required> pq\Connection $connection ]
- Parameter #1 [ <optional> array or NULL $namespaces ]
+ Parameter #1 [ <optional> ?array $namespaces = <default> ]
}
}
Method [ <internal:pq> public method refresh ] {
- Parameters [1] {
- Parameter #0 [ <optional> array or NULL $namespaces ]
+ Parameter #0 [ <optional> ?array $namespaces = <default> ]
}
}
}
}
- Class [ <internal:pq> <iterateable> class pq\Result implements Traversable, Countable ] {
-
- - Constants [21] {
- Constant [ public integer EMPTY_QUERY ] { 0 }
- Constant [ public integer COMMAND_OK ] { 1 }
- Constant [ public integer TUPLES_OK ] { 2 }
- Constant [ public integer COPY_OUT ] { 3 }
- Constant [ public integer COPY_IN ] { 4 }
- Constant [ public integer BAD_RESPONSE ] { 5 }
- Constant [ public integer NONFATAL_ERROR ] { 6 }
- Constant [ public integer FATAL_ERROR ] { 7 }
- Constant [ public integer COPY_BOTH ] { 8 }
- Constant [ public integer SINGLE_TUPLE ] { 9 }
- Constant [ public integer FETCH_ARRAY ] { 0 }
- Constant [ public integer FETCH_ASSOC ] { 1 }
- Constant [ public integer FETCH_OBJECT ] { 2 }
- Constant [ public integer CONV_BOOL ] { 1 }
- Constant [ public integer CONV_INT ] { 2 }
- Constant [ public integer CONV_FLOAT ] { 4 }
- Constant [ public integer CONV_SCALAR ] { 15 }
- Constant [ public integer CONV_ARRAY ] { 16 }
- Constant [ public integer CONV_DATETIME ] { 32 }
- Constant [ public integer CONV_JSON ] { 256 }
- Constant [ public integer CONV_ALL ] { 65535 }
+ Class [ <internal:pq> <iterateable> class pq\Result implements IteratorAggregate, Traversable, Countable ] {
+
+ - Constants [22] {
+ Constant [ public int EMPTY_QUERY ] { 0 }
+ Constant [ public int COMMAND_OK ] { 1 }
+ Constant [ public int TUPLES_OK ] { 2 }
+ Constant [ public int COPY_OUT ] { 3 }
+ Constant [ public int COPY_IN ] { 4 }
+ Constant [ public int BAD_RESPONSE ] { 5 }
+ Constant [ public int NONFATAL_ERROR ] { 6 }
+ Constant [ public int FATAL_ERROR ] { 7 }
+ Constant [ public int COPY_BOTH ] { 8 }
+ Constant [ public int SINGLE_TUPLE ] { 9 }
+ Constant [ public int FETCH_ARRAY ] { 0 }
+ Constant [ public int FETCH_ASSOC ] { 1 }
+ Constant [ public int FETCH_OBJECT ] { 2 }
+ Constant [ public int CONV_BOOL ] { 1 }
+ Constant [ public int CONV_INT ] { 2 }
+ Constant [ public int CONV_FLOAT ] { 4 }
+ Constant [ public int CONV_SCALAR ] { 15 }
+ Constant [ public int CONV_ARRAY ] { 16 }
+ Constant [ public int CONV_DATETIME ] { 32 }
+ Constant [ public int CONV_JSON ] { 256 }
+ Constant [ public int CONV_BYTEA ] { 8 }
+ Constant [ public int CONV_ALL ] { 65535 }
}
- Static properties [0] {
@@ -1090,18 +1320,18 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
}
- Properties [9] {
- Property [ <default> public $status ]
- Property [ <default> public $statusMessage ]
- Property [ <default> public $errorMessage ]
- Property [ <default> public $diag ]
- Property [ <default> public $numRows ]
- Property [ <default> public $numCols ]
- Property [ <default> public $affectedRows ]
- Property [ <default> public $fetchType ]
- Property [ <default> public $autoConvert ]
+ Property [ public $status = NULL ]
+ Property [ public $statusMessage = NULL ]
+ Property [ public $errorMessage = NULL ]
+ Property [ public $diag = NULL ]
+ Property [ public $numRows = 0 ]
+ Property [ public $numCols = 0 ]
+ Property [ public $affectedRows = 0 ]
+ Property [ public $fetchType = 0 ]
+ Property [ public $autoConvert = 65535 ]
}
- - Methods [9] {
+ - Methods [10] {
Method [ <internal:pq> public method bind ] {
- Parameters [2] {
@@ -1119,7 +1349,7 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
Method [ <internal:pq> public method fetchRow ] {
- Parameters [1] {
- Parameter #0 [ <optional> $fetch_type ]
+ Parameter #0 [ <optional> $fetch_type = <default> ]
}
}
@@ -1127,21 +1357,21 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
- Parameters [2] {
Parameter #0 [ <required> &$ref ]
- Parameter #1 [ <optional> $col ]
+ Parameter #1 [ <optional> $col = <default> ]
}
}
Method [ <internal:pq> public method fetchAll ] {
- Parameters [1] {
- Parameter #0 [ <optional> $fetch_type ]
+ Parameter #0 [ <optional> $fetch_type = <default> ]
}
}
Method [ <internal:pq> public method fetchAllCols ] {
- Parameters [1] {
- Parameter #0 [ <optional> $col ]
+ Parameter #0 [ <optional> $col = <default> ]
}
}
@@ -1149,14 +1379,15 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
- Parameters [0] {
}
+ - Tentative return [ int ]
}
Method [ <internal:pq> public method map ] {
- Parameters [3] {
- Parameter #0 [ <optional> $keys ]
- Parameter #1 [ <optional> $vals ]
- Parameter #2 [ <optional> $fetch_type ]
+ Parameter #0 [ <optional> $keys = <default> ]
+ Parameter #1 [ <optional> $vals = <default> ]
+ Parameter #2 [ <optional> $fetch_type = <default> ]
}
}
@@ -1165,6 +1396,13 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
- Parameters [0] {
}
}
+
+ Method [ <internal:pq, prototype IteratorAggregate> public method getIterator ] {
+
+ - Parameters [0] {
+ }
+ - Tentative return [ Traversable ]
+ }
}
}
@@ -1180,10 +1418,10 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
}
- Properties [4] {
- Property [ <default> public $name ]
- Property [ <default> public $connection ]
- Property [ <default> public $query ]
- Property [ <default> public $types ]
+ Property [ public $name = NULL ]
+ Property [ public $connection = NULL ]
+ Property [ public $query = NULL ]
+ Property [ public $types = NULL ]
}
- Methods [10] {
@@ -1193,8 +1431,8 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
Parameter #0 [ <required> pq\Connection $connection ]
Parameter #1 [ <required> $name ]
Parameter #2 [ <required> $query ]
- Parameter #3 [ <optional> array or NULL $types ]
- Parameter #4 [ <optional> $async ]
+ Parameter #3 [ <optional> ?array $types = <default> ]
+ Parameter #4 [ <optional> $async = <default> ]
}
}
@@ -1234,15 +1472,15 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
Method [ <internal:pq> public method exec ] {
- Parameters [1] {
- Parameter #0 [ <optional> array or NULL $params ]
+ Parameter #0 [ <optional> ?array $params = <default> ]
}
}
Method [ <internal:pq> public method execAsync ] {
- Parameters [2] {
- Parameter #0 [ <optional> array or NULL $params ]
- Parameter #1 [ <optional> $callable ]
+ Parameter #0 [ <optional> ?array $params = <default> ]
+ Parameter #1 [ <optional> $callable = <default> ]
}
}
@@ -1263,9 +1501,9 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
Class [ <internal:pq> class pq\Transaction ] {
- Constants [3] {
- Constant [ public integer READ_COMMITTED ] { 0 }
- Constant [ public integer REPEATABLE_READ ] { 1 }
- Constant [ public integer SERIALIZABLE ] { 2 }
+ Constant [ public int READ_COMMITTED ] { 0 }
+ Constant [ public int REPEATABLE_READ ] { 1 }
+ Constant [ public int SERIALIZABLE ] { 2 }
}
- Static properties [0] {
@@ -1275,10 +1513,10 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
}
- Properties [4] {
- Property [ <default> public $connection ]
- Property [ <default> public $isolation ]
- Property [ <default> public $readonly ]
- Property [ <default> public $deferrable ]
+ Property [ public $connection = NULL ]
+ Property [ public $isolation = NULL ]
+ Property [ public $readonly = false ]
+ Property [ public $deferrable = false ]
}
- Methods [16] {
@@ -1286,10 +1524,10 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
- Parameters [5] {
Parameter #0 [ <required> pq\Connection $connection ]
- Parameter #1 [ <optional> $async ]
- Parameter #2 [ <optional> $isolation ]
- Parameter #3 [ <optional> $readonly ]
- Parameter #4 [ <optional> $deferrable ]
+ Parameter #1 [ <optional> $async = <default> ]
+ Parameter #2 [ <optional> $isolation = <default> ]
+ Parameter #3 [ <optional> $readonly = <default> ]
+ Parameter #4 [ <optional> $deferrable = <default> ]
}
}
@@ -1359,14 +1597,14 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
- Parameters [2] {
Parameter #0 [ <required> $oid ]
- Parameter #1 [ <optional> $mode ]
+ Parameter #1 [ <optional> $mode = <default> ]
}
}
Method [ <internal:pq> public method createLOB ] {
- Parameters [1] {
- Parameter #0 [ <optional> $mode ]
+ Parameter #0 [ <optional> $mode = <default> ]
}
}
@@ -1381,7 +1619,7 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
- Parameters [2] {
Parameter #0 [ <required> $local_path ]
- Parameter #1 [ <optional> $oid ]
+ Parameter #1 [ <optional> $oid = <default> ]
}
}
@@ -1398,11 +1636,11 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
Class [ <internal:pq> class pq\Cursor ] {
- Constants [5] {
- Constant [ public integer BINARY ] { 1 }
- Constant [ public integer INSENSITIVE ] { 2 }
- Constant [ public integer WITH_HOLD ] { 4 }
- Constant [ public integer SCROLL ] { 16 }
- Constant [ public integer NO_SCROLL ] { 32 }
+ Constant [ public int BINARY ] { 1 }
+ Constant [ public int INSENSITIVE ] { 2 }
+ Constant [ public int WITH_HOLD ] { 4 }
+ Constant [ public int SCROLL ] { 16 }
+ Constant [ public int NO_SCROLL ] { 32 }
}
- Static properties [0] {
@@ -1412,10 +1650,10 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
}
- Properties [4] {
- Property [ <default> public $name ]
- Property [ <default> public $connection ]
- Property [ <default> public $query ]
- Property [ <default> public $flags ]
+ Property [ public $name = NULL ]
+ Property [ public $connection = NULL ]
+ Property [ public $query = NULL ]
+ Property [ public $flags = NULL ]
}
- Methods [9] {
@@ -1426,7 +1664,7 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
Parameter #1 [ <required> $name ]
Parameter #2 [ <required> $flags ]
Parameter #3 [ <required> $query ]
- Parameter #4 [ <optional> $async ]
+ Parameter #4 [ <optional> $async = <default> ]
}
}
@@ -1464,23 +1702,23 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
Method [ <internal:pq> public method move ] {
- Parameters [1] {
- Parameter #0 [ <optional> $spec ]
+ Parameter #0 [ <optional> $spec = <default> ]
}
}
Method [ <internal:pq> public method fetchAsync ] {
- Parameters [2] {
- Parameter #0 [ <optional> $spec ]
- Parameter #1 [ <optional> $callback ]
+ Parameter #0 [ <optional> $spec = <default> ]
+ Parameter #1 [ <optional> $callback = <default> ]
}
}
Method [ <internal:pq> public method moveAsync ] {
- Parameters [2] {
- Parameter #0 [ <optional> $spec ]
- Parameter #1 [ <optional> $callback ]
+ Parameter #0 [ <optional> $spec = <default> ]
+ Parameter #1 [ <optional> $callback = <default> ]
}
}
}
@@ -1489,8 +1727,8 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
Class [ <internal:pq> class pq\COPY ] {
- Constants [2] {
- Constant [ public integer FROM_STDIN ] { 0 }
- Constant [ public integer TO_STDOUT ] { 1 }
+ Constant [ public int FROM_STDIN ] { 0 }
+ Constant [ public int TO_STDOUT ] { 1 }
}
- Static properties [0] {
@@ -1500,10 +1738,10 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
}
- Properties [4] {
- Property [ <default> public $connection ]
- Property [ <default> public $expression ]
- Property [ <default> public $direction ]
- Property [ <default> public $options ]
+ Property [ public $connection = NULL ]
+ Property [ public $expression = NULL ]
+ Property [ public $direction = NULL ]
+ Property [ public $options = NULL ]
}
- Methods [4] {
@@ -1513,7 +1751,7 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
Parameter #0 [ <required> pq\Connection $connection ]
Parameter #1 [ <required> $expression ]
Parameter #2 [ <required> $direction ]
- Parameter #3 [ <optional> $options ]
+ Parameter #3 [ <optional> $options = <default> ]
}
}
@@ -1527,7 +1765,7 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
Method [ <internal:pq> public method end ] {
- Parameters [1] {
- Parameter #0 [ <optional> $error ]
+ Parameter #0 [ <optional> $error = <default> ]
}
}
@@ -1543,10 +1781,10 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
Class [ <internal:pq> class pq\LOB ] {
- Constants [4] {
- Constant [ public integer INVALID_OID ] { 0 }
- Constant [ public integer R ] { 262144 }
- Constant [ public integer W ] { 131072 }
- Constant [ public integer RW ] { 393216 }
+ Constant [ public int INVALID_OID ] { 0 }
+ Constant [ public int R ] { 262144 }
+ Constant [ public int W ] { 131072 }
+ Constant [ public int RW ] { 393216 }
}
- Static properties [0] {
@@ -1556,9 +1794,9 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
}
- Properties [3] {
- Property [ <default> public $transaction ]
- Property [ <default> public $oid ]
- Property [ <default> public $stream ]
+ Property [ public $transaction = NULL ]
+ Property [ public $oid = 0 ]
+ Property [ public $stream = NULL ]
}
- Methods [6] {
@@ -1566,8 +1804,8 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
- Parameters [3] {
Parameter #0 [ <required> pq\Transaction $transaction ]
- Parameter #1 [ <optional> $oid ]
- Parameter #2 [ <optional> $mode ]
+ Parameter #1 [ <optional> $oid = <default> ]
+ Parameter #2 [ <optional> $mode = <default> ]
}
}
@@ -1581,8 +1819,8 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
Method [ <internal:pq> public method read ] {
- Parameters [2] {
- Parameter #0 [ <optional> $length ]
- Parameter #1 [ <optional> &$read ]
+ Parameter #0 [ <optional> $length = <default> ]
+ Parameter #1 [ <optional> &$read = <default> ]
}
}
@@ -1590,7 +1828,7 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
- Parameters [2] {
Parameter #0 [ <required> $offset ]
- Parameter #1 [ <optional> $whence ]
+ Parameter #1 [ <optional> $whence = <default> ]
}
}
@@ -1603,7 +1841,7 @@ Extension [ <persistent> extension #194 pq version 2.1.5 ] {
Method [ <internal:pq> public method truncate ] {
- Parameters [1] {
- Parameter #0 [ <optional> $length ]
+ Parameter #0 [ <optional> $length = <default> ]
}
}
}
diff --git a/php-pecl-pq.spec b/php-pecl-pq.spec
index 228df35..f87d346 100644
--- a/php-pecl-pq.spec
+++ b/php-pecl-pq.spec
@@ -1,59 +1,45 @@
# remirepo spec file for php-pecl-pq
#
-# Copyright (c) 2014-2019 Remi Collet
-# License: CC-BY-SA
+# Copyright (c) 2014-2024 Remi Collet
+# License: CC-BY-SA-4.0
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
-%if 0%{?scl:1}
-%global sub_prefix %{scl_prefix}
-%scl_package php-pecl-pq
-%endif
+%{?scl:%scl_package php-pecl-pq}
+
+# Build using "--without tests" to disable tests
+%bcond_without tests
-%global gh_commit e381164032a750583657e449875f62d52b7b6609
-%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
-%global gh_owner m6w6
-%global gh_project ext-pq
-#global gh_date 20150819
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
%global pecl_name pq
#global prever RC1
-%if %{?runselftest}%{!?runselftest:1}
-# Build using "--without tests" to disable tests
-%global with_tests 0%{!?_without_tests:1}
-%else
-# Build using "--with tests" to enable tests
-%global with_tests 0%{?_with_tests:1}
-%endif
-%global ini_name 50-%{pecl_name}.ini
-Summary: PostgreSQL client library (libpq) binding
-Name: %{?sub_prefix}php-pecl-%{pecl_name}
-Version: 2.1.5
-%if 0%{?gh_date:1}
-Release: 0.9.%{gh_date}git%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
-Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{pecl_name}-%{version}-%{gh_short}.tar.gz
-%else
-Release: 3%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
-Source0: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz
-%endif
-License: BSD
-URL: http://pecl.php.net/package/%{pecl_name}
+%global ini_name 50-%{pecl_name}.ini
-Patch0: https://patch-diff.githubusercontent.com/raw/m6w6/ext-pq/pull/33.patch
+%global sources %{pecl_name}-%{version}
+%global _configure ../%{sources}/configure
-%if 0%{?fedora} >= 29 && 0%{?rhel} >= 8
+Summary: PostgreSQL client library (libpq) binding
+Name: %{?scl_prefix}php-pecl-%{pecl_name}
+Version: 2.2.3
+Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Source0: https://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz
+License: BSD-2-Clause
+URL: https://pecl.php.net/package/%{pecl_name}
+
+%if 0%{?fedora} >= 29 || 0%{?rhel} >= 8
BuildRequires: libpq-devel > 9
%else
BuildRequires: postgresql-devel > 9
%endif
+BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
-BuildRequires: %{?scl_prefix}php-devel > 7
+BuildRequires: %{?scl_prefix}php-devel >= 7.0
BuildRequires: %{?scl_prefix}php-pear
BuildRequires: %{?scl_prefix}php-json
-BuildRequires: %{?sub_prefix}php-pecl-raphf-devel >= 1.1.0
-%if %{with_tests}
+BuildRequires: %{?scl_prefix}php-pecl-raphf-devel >= 1.1.0
+%if %{with tests}
BuildRequires: postgresql-server
BuildRequires: postgresql-contrib
%endif
@@ -61,43 +47,12 @@ BuildRequires: postgresql-contrib
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
Requires: %{?scl_prefix}php-json%{?_isa}
-Requires: %{?sub_prefix}php-raphf%{?_isa} >= 1.1.0
-%{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}}
+Requires: %{?scl_prefix}php-raphf%{?_isa} >= 1.1.0
Provides: %{?scl_prefix}php-%{pecl_name} = %{version}
Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version}
Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version}
Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
-%if "%{?scl_prefix}" != "%{?sub_prefix}"
-Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release}
-Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release}
-%endif
-
-%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
-# Other third party repo stuff
-%if "%{php_version}" > "7.1"
-Obsoletes: php71u-pecl-%{pecl_name} <= %{version}
-Obsoletes: php71w-pecl-%{pecl_name} <= %{version}
-%endif
-%if "%{php_version}" > "7.2"
-Obsoletes: php72u-pecl-%{pecl_name} <= %{version}
-Obsoletes: php72w-pecl-%{pecl_name} <= %{version}
-%endif
-%if "%{php_version}" > "7.3"
-Obsoletes: php73-pecl-%{pecl_name} <= %{version}
-Obsoletes: php73w-pecl-%{pecl_name} <= %{version}
-%endif
-%if "%{php_version}" > "7.4"
-Obsoletes: php74-pecl-%{pecl_name} <= %{version}
-Obsoletes: php74w-pecl-%{pecl_name} <= %{version}
-%endif
-%endif
-
-%if 0%{?fedora} < 20 && 0%{?rhel} < 7
-# Filter shared private
-%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$}
-%{?filter_setup}
-%endif
%description
@@ -116,21 +71,13 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
%prep
%setup -q -c
-%if 0%{?ghdate}
-mv %{gh_project}-%{gh_commit} NTS
-mv NTS/package.xml .
-%else
-mv %{pecl_name}-%{version}%{?prever} NTS
-%endif
# Don't install tests
sed -e '/role="test"/d' \
%{?_licensedir: -e '/LICENSE/s/role="doc"/role="src"/' }\
-i package.xml
-cd NTS
-%patch0 -p1
-
+cd %{sources}
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_PQ_VERSION/{s/.* "//;s/".*$//;p}' php_pq.h)
if test "x${extver}" != "x%{version}%{?prever}"; then
@@ -139,9 +86,9 @@ if test "x${extver}" != "x%{version}%{?prever}"; then
fi
cd ..
+mkdir NTS
%if %{with_zts}
-# Duplicate source tree for NTS / ZTS build
-cp -pr NTS ZTS
+mkdir ZTS
%endif
# Create configuration file
@@ -154,19 +101,20 @@ EOF
%build
%{?dtsenable}
-cd NTS
-%{_bindir}/phpize
+cd %{sources}
+%{__phpize}
+
+cd ../NTS
%configure \
--with-libdir=%{_lib} \
- --with-php-config=%{_bindir}/php-config
+ --with-php-config=%{__phpconfig}
make %{?_smp_mflags}
%if %{with_zts}
cd ../ZTS
-%{_bindir}/zts-phpize
%configure \
--with-libdir=%{_lib} \
- --with-php-config=%{_bindir}/zts-php-config
+ --with-php-config=%{__ztsphpconfig}
make %{?_smp_mflags}
%endif
@@ -190,7 +138,7 @@ install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name}
# Documentation
for i in $(grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//')
-do install -Dpm 644 NTS/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
+do install -Dpm 644 %{sources}/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
done
@@ -216,7 +164,8 @@ fi
%check
: ignore tests with erratic results
-rm ?TS/tests/cancel001.phpt
+rm %{sources}/tests/cancel001.phpt
+rm %{sources}/tests/flush001.phpt
OPT="-n"
[ -f %{php_extdir}/json.so ] && OPT="$OPT -d extension=json.so"
@@ -225,25 +174,22 @@ OPT="-n"
: Minimal load test for NTS extension
%{__php} $OPT \
--define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \
- --modules | grep %{pecl_name}
+ --modules | grep '^%{pecl_name}$'
%if %{with_zts}
: Minimal load test for ZTS extension
%{__ztsphp} $OPT \
--define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \
- --modules | grep %{pecl_name}
+ --modules | grep '^%{pecl_name}$'
%endif
-%if %{with_tests}
+%if %{with tests}
RET=0
: Running a server
DATABASE=$PWD/data
-%ifarch x86_64
-PORT=5440
-%else
-PORT=5436
-%endif
+PORT=$(%{__php} -r 'echo 5432 + PHP_MINOR_VERSION + PHP_INT_SIZE + 0%{?scl:1};')
+
pg_ctl initdb -D $DATABASE
cat <<EOF >>$DATABASE/postgresql.conf
unix_socket_directories = '$DATABASE'
@@ -251,28 +197,23 @@ port = $PORT
EOF
pg_ctl -D $DATABASE -l $PWD/server.log -w -t 200 start
createdb -h localhost -p $PORT rpmtest
-cd NTS
-sed -e "/PQ_DSN/s/\"host.*\"/'host=localhost port=$PORT dbname=rpmtest'/" \
- -i tests/_setup.inc
+
+cd %{sources}
+export PQ_DSN="host=localhost port=$PORT dbname=rpmtest"
: Upstream test suite for NTS extension
TEST_PHP_EXECUTABLE=%{__php} \
-TEST_PHP_ARGS="$OPT -d extension=$PWD/modules/%{pecl_name}.so" \
+TEST_PHP_ARGS="$OPT -d extension=$PWD/../NTS/modules/%{pecl_name}.so" \
NO_INTERACTION=1 \
REPORT_EXIT_STATUS=1 \
-%{__php} -n run-tests.php --show-diff || RET=1
+%{__php} -n run-tests.php -q --show-diff || RET=1
%if %{with_zts}
-cd ../ZTS
-sed -e "/PQ_DSN/s/\"host.*\"/'host=localhost port=$PORT dbname=rpmtest'/" \
- -i tests/_setup.inc
-
: Upstream test suite for ZTS extension
-TEST_PHP_EXECUTABLE=%{_bindir}/zts-php \
-TEST_PHP_ARGS="$OPT -d extension=$PWD/modules/%{pecl_name}.so" \
-NO_INTERACTION=1 \
+TEST_PHP_EXECUTABLE=%{__ztsphp} \
+TEST_PHP_ARGS="$OPT -d extension=$PWD/../ZTS/modules/%{pecl_name}.so" \
REPORT_EXIT_STATUS=1 \
-%{_bindir}/zts-php -n run-tests.php --show-diff || RET=1
+%{__ztsphp} -n run-tests.php -q --show-diff || RET=1
%endif
cd ..
@@ -287,7 +228,7 @@ exit $RET
%files
%doc %{pecl_docdir}/%{pecl_name}
-%{?_licensedir:%license NTS/LICENSE}
+%{?_licensedir:%license %{sources}/LICENSE}
%{pecl_xmldir}/%{name}.xml
%config(noreplace) %{php_inidir}/%{ini_name}
@@ -300,6 +241,63 @@ exit $RET
%changelog
+* Fri Feb 16 2024 Remi Collet <remi@remirepo.net> - 2.2.3-2
+- F40: fix build dependencies
+
+* Tue Feb 6 2024 Remi Collet <remi@remirepo.net> - 2.2.3-1
+- update to 2.2.3
+- drop patch merged upstream
+
+* Mon Jan 29 2024 Remi Collet <remi@remirepo.net> - 2.2.2-5
+- Fix incompatible pointer types using patch from
+ https://github.com/m6w6/ext-pq/pull/52
+
+* Wed Aug 30 2023 Remi Collet <remi@remirepo.net> - 2.2.2-2
+- rebuild for PHP 8.3.0RC1
+
+* Mon Jun 12 2023 Remi Collet <remi@remirepo.net> - 2.2.2-1
+- update to 2.2.2
+- build out of sources tree
+
+* Fri Mar 3 2023 Remi Collet <remi@remirepo.net> - 2.2.1-1
+- update to 2.2.1
+
+* Thu Sep 8 2022 Remi Collet <remi@remirepo.net> - 2.2.0-8
+- add upstream patch for 8.2 and from
+ https://github.com/m6w6/ext-pq/pull/44
+
+* Wed Sep 1 2021 Remi Collet <remi@remirepo.net> - 2.2.0-7
+- rebuild for 8.1.0RC1
+
+* Tue Aug 31 2021 Remi Collet <remi@remirepo.net> - 2.2.0-1
+- update to 2.2.0
+
+* Wed Aug 4 2021 Remi Collet <remi@remirepo.net> - 2.1.8-6
+- add patch for 8.1.0beta2 from
+ https://github.com/m6w6/ext-pq/pull/41
+
+* Fri Jun 11 2021 Remi Collet <remi@remirepo.net> - 2.1.8-5
+- add patches for 8.1 from upstream and from
+ https://github.com/m6w6/ext-pq/pull/40
+
+* Fri Apr 30 2021 Remi Collet <remi@remirepo.net> - 2.1.8-4
+- F34 rebuild for https://github.com/remicollet/remirepo/issues/174
+
+* Wed Sep 30 2020 Remi Collet <remi@remirepo.net> - 2.1.8-2
+- rebuild for PHP 8.0.0RC1
+
+* Thu Sep 24 2020 Remi Collet <remi@remirepo.net> - 2.1.8-1
+- update to 2.1.8
+
+* Fri Feb 7 2020 Remi Collet <remi@remirepo.net> - 2.1.7-1
+- update to 2.1.7
+
+* Sun Jan 19 2020 Remi Collet <remi@remirepo.net> - 2.1.6-1
+- update to 2.1.6
+
+* Tue Sep 03 2019 Remi Collet <remi@remirepo.net> - 2.1.5-4
+- rebuild for 7.4.0RC1
+
* Tue Jul 23 2019 Remi Collet <remi@remirepo.net> - 2.1.5-3
- rebuild for 7.4.0beta1