Skip to content

Commit b420d09

Browse files
committed
Fix type info for pg_socket()
This was mistakenly changed to MAY_BE_OBJECT when pgsql was migrated to use objects. However, this particular function still returns a (stream) resource.
1 parent c14c82e commit b420d09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/Optimizer/zend_func_info.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ static const func_info_t func_infos[] = {
690690
F1("pg_get_result", MAY_BE_FALSE | MAY_BE_OBJECT),
691691
F1("pg_result_status", MAY_BE_LONG | MAY_BE_STRING),
692692
F1("pg_get_notify", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY),
693-
F1("pg_socket", MAY_BE_FALSE | MAY_BE_OBJECT),
693+
F1("pg_socket", MAY_BE_FALSE | MAY_BE_RESOURCE),
694694
F1("pg_meta_data", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ARRAY),
695695
F1("pg_convert", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ANY),
696696
F1("pg_insert", MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_OBJECT | MAY_BE_STRING),

0 commit comments

Comments
 (0)