Skip to content

Commit 3861cb8

Browse files
committed
More pgsql func info fixes
1 parent 8a5e3e4 commit 3861cb8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/opcache/Optimizer/zend_func_info.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -687,15 +687,15 @@ static const func_info_t func_infos[] = {
687687
F1("session_encode", MAY_BE_FALSE | MAY_BE_STRING),
688688

689689
/* ext/pgsql */
690-
F1("pg_connect", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_RESOURCE),
691-
FN("pg_pconnect", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_RESOURCE),
690+
F1("pg_connect", MAY_BE_FALSE | MAY_BE_RESOURCE),
691+
FN("pg_pconnect", MAY_BE_FALSE | MAY_BE_RESOURCE),
692692
F1("pg_dbname", MAY_BE_STRING),
693693
F1("pg_last_error", MAY_BE_STRING),
694694
F1("pg_options", MAY_BE_STRING),
695695
F1("pg_port", MAY_BE_STRING),
696696
F1("pg_tty", MAY_BE_STRING),
697697
F1("pg_host", MAY_BE_STRING),
698-
F1("pg_version", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_STRING),
698+
F1("pg_version", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_NULL),
699699
F1("pg_parameter_status", MAY_BE_FALSE | MAY_BE_STRING),
700700
F1("pg_query", MAY_BE_FALSE | MAY_BE_RESOURCE),
701701
F1("pg_query_params", MAY_BE_FALSE | MAY_BE_RESOURCE),
@@ -723,7 +723,7 @@ static const func_info_t func_infos[] = {
723723
F1("pg_escape_bytea", MAY_BE_STRING),
724724
F1("pg_unescape_bytea", MAY_BE_FALSE | MAY_BE_STRING),
725725
F1("pg_escape_literal", MAY_BE_FALSE | MAY_BE_STRING),
726-
F1("pg_escape_identifier", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
726+
F1("pg_escape_identifier", MAY_BE_FALSE | MAY_BE_STRING),
727727
F1("pg_result_error", MAY_BE_FALSE | MAY_BE_STRING),
728728
F1("pg_result_error_field", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
729729
F1("pg_get_result", MAY_BE_FALSE | MAY_BE_RESOURCE),

0 commit comments

Comments
 (0)