We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49a5452 commit e8ab696Copy full SHA for e8ab696
ext/pgsql/pgsql.c
@@ -2777,7 +2777,7 @@ PHP_FUNCTION(pg_lo_write)
2777
2778
ZEND_PARSE_PARAMETERS_START(2, 3)
2779
Z_PARAM_OBJECT_OF_CLASS(pgsql_id, pgsql_lob_ce)
2780
- Z_PARAM_STR(str)
+ Z_PARAM_PATH_STR(str)
2781
Z_PARAM_OPTIONAL
2782
Z_PARAM_LONG_OR_NULL(z_len, z_len_is_null)
2783
ZEND_PARSE_PARAMETERS_END();
@@ -2794,10 +2794,6 @@ PHP_FUNCTION(pg_lo_write)
2794
len = z_len;
2795
}
2796
else {
2797
- if (zend_str_has_nul_byte(str)) {
2798
- zend_argument_value_error(2, "must not contain any null bytes");
2799
- RETURN_THROWS();
2800
- }
2801
len = ZSTR_LEN(str);
2802
2803
0 commit comments