Skip to content

Commit e8ab696

Browse files
committed
change from review
1 parent 49a5452 commit e8ab696

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ext/pgsql/pgsql.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2777,7 +2777,7 @@ PHP_FUNCTION(pg_lo_write)
27772777

27782778
ZEND_PARSE_PARAMETERS_START(2, 3)
27792779
Z_PARAM_OBJECT_OF_CLASS(pgsql_id, pgsql_lob_ce)
2780-
Z_PARAM_STR(str)
2780+
Z_PARAM_PATH_STR(str)
27812781
Z_PARAM_OPTIONAL
27822782
Z_PARAM_LONG_OR_NULL(z_len, z_len_is_null)
27832783
ZEND_PARSE_PARAMETERS_END();
@@ -2794,10 +2794,6 @@ PHP_FUNCTION(pg_lo_write)
27942794
len = z_len;
27952795
}
27962796
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-
}
28012797
len = ZSTR_LEN(str);
28022798
}
28032799

0 commit comments

Comments
 (0)