File tree 2 files changed +9
-2
lines changed 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ static ZEND_FUNCTION(zend_test_compile_string)
243
243
244
244
ZEND_PARSE_PARAMETERS_START (3 , 3 )
245
245
Z_PARAM_STR (source_string )
246
- Z_PARAM_PATH_STR_EX (filename , 1 , 0 )
246
+ Z_PARAM_PATH_STR (filename )
247
247
Z_PARAM_LONG (position )
248
248
ZEND_PARSE_PARAMETERS_END ();
249
249
Original file line number Diff line number Diff line change 49
49
echo $ e ->getMessage (), PHP_EOL ;
50
50
}
51
51
52
+ zend_test_compile_string (null , null , null );
52
53
53
54
$ source_string = <<<EOF
54
55
<?php
58
59
zend_test_compile_string ($ source_string , 'Source string ' , ZEND_COMPILE_POSITION_AFTER_OPEN_TAG );
59
60
60
61
?>
61
- --EXPECT --
62
+ --EXPECTF --
62
63
string(3) "php"
63
64
#!/path/to/php
64
65
string(3) "php"
65
66
string(3) "php"
66
67
string(3) "php"
67
68
zend_test_compile_string(): Argument #2 ($filename) must not contain any null bytes
68
69
70
+ Deprecated: zend_test_compile_string(): Passing null to parameter #1 ($source_string) of type string is deprecated in %s on line %d
71
+
72
+ Deprecated: zend_test_compile_string(): Passing null to parameter #2 ($filename) of type string is deprecated in %s on line %d
73
+
74
+ Deprecated: zend_test_compile_string(): Passing null to parameter #3 ($position) of type int is deprecated in %s on line %d
75
+
69
76
Parse error: syntax error, unexpected token "<", expecting end of file in Source string on line 1
You can’t perform that action at this time.
0 commit comments