Skip to content

Consistent types #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 74 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
5191724
[skip ci] Add info on how to check for PHP NULL when using the ZPP ca…
Girgias Jul 8, 2020
7ac9e9b
Use ZPP callable check in zend built in functions
Girgias Jul 8, 2020
ad66053
Support JIT jumptables on x64
nikic Jul 8, 2020
15c6b67
Fix jumtable index calculation
dstogov Jul 9, 2020
67828ab
Align jumptables
dstogov Jul 9, 2020
972383f
Revert "Partial fixed bug #79649 (Altering disable_functions from mod…
derickr Jul 9, 2020
fc76509
Merge branch 'PHP-7.4'
derickr Jul 9, 2020
a3cb612
Revert "Fixed bug #97599 (coredump in set_error_handler)"
nikic Jul 9, 2020
5795dfd
Fix bug #79599 in a different way
nikic Jul 9, 2020
04b1721
Merge branch 'PHP-7.4'
nikic Jul 9, 2020
5872bfc
Use RIP-relative addressing
dstogov Jul 9, 2020
8318379
Switch back to FREE_UNFETCHED_OP_DATA
nikic Jul 9, 2020
c05bfa3
Merge branch 'PHP-7.4'
nikic Jul 9, 2020
613a56d
Remove FREE_UNFETCHED concept
nikic Jul 9, 2020
db484b6
Prevent parallel test conflicts
cmb69 Jul 9, 2020
e33dd6a
Merge branch 'PHP-7.4'
cmb69 Jul 9, 2020
92448d9
Merge branch 'jit-jumptable-x64'
dstogov Jul 9, 2020
9839752
Voidify some ZEND_API functions
Girgias Jul 3, 2020
af1de14
Use ZPP string|array union check in PCRE extension
Girgias Jun 22, 2020
6d8d08f
Fixed tracing JIT support for extract()
dstogov Jul 9, 2020
b4ae5a2
Move assert() to right place
dstogov Jul 9, 2020
5fec155
Prevent trace recorder reenterancing
dstogov Jul 9, 2020
0d9beba
Fixed mysqli_fetch_row() function info
dstogov Jul 9, 2020
9d14bdb
Bad function detection
dstogov Jul 9, 2020
31258e4
Fixed register allocation for tests/lang/operators/preinc_basiclong_6…
dstogov Jul 9, 2020
23ef0a1
Fix some memory bugs in ldap.c
ptomulik Jul 3, 2020
c60d0dc
Make tracing JIT to support operator overloading independently from o…
dstogov Jul 9, 2020
9fa1d13
Implement match expression
iluuu1994 Apr 9, 2020
d59709d
Mark test as XFAIL for Windows/JIT/Release builds
cmb69 Jul 10, 2020
2235286
Merge branch 'PHP-7.3' into PHP-7.4
nikic Jul 10, 2020
bee2cf0
Merge branch 'PHP-7.4'
nikic Jul 10, 2020
c6ab308
fix some ext/ldap/tests
ptomulik Jul 3, 2020
b291c92
enable ext/ldap/tests on azure
ptomulik Jul 3, 2020
bc68f10
Merge branch 'PHP-7.4'
nikic Jul 10, 2020
68293b1
Enable symlink_link_linkinfo_is_link_* tests on Windows
cmb69 Jul 9, 2020
bdcda50
Merge branch 'PHP-7.4'
cmb69 Jul 10, 2020
b284ba3
Add zend_wrong_parameter_error to reduce the size of ZPP macro
twose Jul 10, 2020
c1e792e
Drop dead prototype
nikic Jul 10, 2020
7edc5e5
Fix skip reasons
cmb69 Jul 10, 2020
ef1de5e
Merge branch 'PHP-7.4'
cmb69 Jul 10, 2020
8d15a2b
Restore registers
dstogov Jul 10, 2020
b7dd867
Fixed tracing JIT miss-compilation
dstogov Jul 10, 2020
99aa548
Enable further ext/standard/tests/file tests on Windows
cmb69 Jul 10, 2020
9a5695b
Merge branch 'PHP-7.4'
cmb69 Jul 10, 2020
a72c53a
Fixed bug #79817
nikic Jul 10, 2020
3f8d71d
Merge branch 'PHP-7.3' into PHP-7.4
nikic Jul 10, 2020
12214e1
Merge branch 'PHP-7.4'
nikic Jul 10, 2020
db43a93
Fix warning in embed sapi
nikic Jul 10, 2020
f328594
Add stubs for SAPIs
kocsismate Mar 25, 2020
6556846
Fixed bug #79818
nikic Jul 10, 2020
3f286fa
Promote Notice to Warning in libmagic
Girgias Jul 8, 2020
5fc7024
Add missing addref for MATCH_ERROR operand
nikic Jul 10, 2020
2297a6d
Use dedicated function for illegal offset type error
Girgias Jul 2, 2020
2ad75ba
Fix test cases
cmb69 Jul 10, 2020
d30cd7d
Review the usage of apostrophes in error messages
kocsismate May 26, 2020
95cff3e
Retain the original formatting character in test
kocsismate Jul 10, 2020
7817ff8
Don't generate JSON scanner and parser during configure
huanghantao Jul 10, 2020
150504e
Fixed bug #79821
twose Jul 10, 2020
8db2ae8
Merge branch 'PHP-7.3' into PHP-7.4
twose Jul 10, 2020
342fe09
Merge branch 'PHP-7.4'
twose Jul 10, 2020
56dec3c
Fixed bug #79830 introduced by fixing bug #79821
twose Jul 11, 2020
6ef08b1
Merge branch 'PHP-7.3' into PHP-7.4
twose Jul 11, 2020
40efb7a
Merge branch 'PHP-7.4'
twose Jul 11, 2020
f0b2c2c
Fixed BC break of php_debug_zval_dump
twose Jul 11, 2020
7a39e17
Merge branch 'PHP-7.3' into PHP-7.4
twose Jul 11, 2020
614b219
Merge branch 'PHP-7.4'
twose Jul 11, 2020
d5a0370
[skip ci] Consistent match test closing tags
iluuu1994 Jul 11, 2020
340e2ea
Export php_gd_libgdimageptr_from_zval_p()
cmb69 Jul 11, 2020
f06a6b4
(ffi) fix ifdefs for non-windows systems without long double
chuckadams Jul 11, 2020
11f4a5e
Removed the "oci_internal_debug" function and its alias. Also depreca…
jensdenies Jul 5, 2020
6cf2252
Addd upgrading notes about OCI8
kocsismate Jul 11, 2020
c0172aa
debug_zval_dump(): Don't skip recursion detection on first level
twose Jul 11, 2020
b58436d
Use consistent types
Girgias Jul 11, 2020
da4b5ab
Add TODO note
Girgias Jul 12, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions UPGRADING
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,10 @@ PHP 8.0 UPGRADE NOTES
ISO 8859 aliases with underscores (ISO_8859_* and ISO8859_*) have also been
removed.

- OCI8:
. Several alias functions have been marked as deprecated.
. oci_internal_debug() and its alias ociinternaldebug() have been removed.

- PCRE:
. When passing invalid escape sequences they are no longer interpreted as
literals. This behaviour previously required the X modifier - which is
Expand Down Expand Up @@ -571,6 +575,8 @@ PHP 8.0 UPGRADE NOTES
. Added support for constructor property promotion (declaring properties in
the constructor signature).
RFC: https://wiki.php.net/rfc/constructor_promotion
. Added support for `match` expression.
RFC: https://wiki.php.net/rfc/match_expression_v2

- Date:
. Added DateTime::createFromInterface() and
Expand Down Expand Up @@ -886,6 +892,9 @@ PHP 8.0 UPGRADE NOTES
shell now consistently execute `%comspec% /s /c "$commandline"`, which has
the same effect as executing `$commandline` (without additional quotes).

- GD:
. php_gd2.dll has been renamed to php_gd.dll.

- php-test-pack:
. The test runner has been renamed from run-test.php to run-tests.php, to
match its name in php-src.
Expand Down
16 changes: 14 additions & 2 deletions UPGRADING.INTERNALS
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ PHP 8.0 INTERNALS UPGRADE NOTES
q. GC_COLLECTABLE flag
r. Cannot implement Traversable only
s. zend_fcall_info no_separation flag removed
t. Signature changes

2. Build system changes
a. Abstract
Expand Down Expand Up @@ -89,7 +90,7 @@ PHP 8.0 INTERNALS UPGRADE NOTES
j. compare_objects() handler was removed. Extensions should use compare() object
handler instead and check if both arguments are objects and have the same
compare handler, using ZEND_COMPARE_OBJECTS_FALLBACK() macro.

k. The 'I' length modifier, used to denote 32 and 64bit integer from the custom
snprintf and spprintf implementations has been removed.
Use the ZEND_LONG_FMT, ZEND_ULONG_FMT and ZEND_XLONG_FMT macros defined in
Expand Down Expand Up @@ -136,11 +137,22 @@ PHP 8.0 INTERNALS UPGRADE NOTES
zend_create_internal_iterator_zval(return_value, ZEND_THIS);
}

s. The zend_fcall_info no_separation flag has been removed, and separation is
s. The zend_fcall_info no_separation flag has been removed, and separation is
never allowed. If you wish to pass (or allow passing) arguments by
reference, explicitly create those arguments as references using
ZEND_MAKE_REF.

t. The following ZEND_API function have changed signature:
1. Void in Zend Engine 4.0:
- add_assoc_*()
- add_index_*()
- add_property_*()
- object_init()
- zend_declare_class_constant*()
- zend_declare_property*()
- zend_startup_modules()
- zend_wrong_parameters_none_error()

========================
2. Build system changes
========================
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/018.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var_dump(constant("TEST_CONST2"));
echo "Done\n";
?>
--EXPECT--
Undefined constant ''
Undefined constant ""
int(1)
string(4) "test"
Done
8 changes: 4 additions & 4 deletions Zend/tests/024.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ NULL
Warning: Undefined variable $b in %s on line %d
int(1)

Warning: Attempt to read property '1' on int in %s on line %d
Warning: Attempt to read property "1" on int in %s on line %d
NULL

Warning: Attempt to read property '1' on int in %s on line %d
Warning: Attempt to read property "1" on int in %s on line %d
NULL

Warning: Undefined variable $c in %s on line %d

Warning: Trying to access array offset on value of type null in %s on line %d

Warning: Attempt to read property '1' on int in %s on line %d
Warning: Attempt to read property "1" on int in %s on line %d

Warning: Attempt to read property '' on null in %s on line %d
Warning: Attempt to read property "" on null in %s on line %d
NULL
4 changes: 2 additions & 2 deletions Zend/tests/026.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ print "ok\n";

?>
--EXPECTF--
Warning: Attempt to read property 'a' on null in %s on line %d
Warning: Attempt to read property "a" on null in %s on line %d
ok
Attempt to assign property 'a' on null
Attempt to assign property "a" on null
ok
2 changes: 1 addition & 1 deletion Zend/tests/028.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ bool(true)
bool(true)
bool(true)

Notice: Undefined offset: 2 in %s on line %d
Notice: Undefined array key 2 in %s on line %d

Fatal error: Uncaught Error: Value of type null is not callable in %s:%d
Stack trace:
Expand Down
6 changes: 3 additions & 3 deletions Zend/tests/033.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ Warning: Trying to access array offset on value of type null in %s on line %d

Warning: Trying to access array offset on value of type null in %s on line %d

Warning: Attempt to read property 'foo' on null in %s on line %d
Attempt to assign property 'foo' on null
Attempt to assign property 'bar' on null
Warning: Attempt to read property "foo" on null in %s on line %d
Attempt to assign property "foo" on null
Attempt to assign property "bar" on null
2 changes: 1 addition & 1 deletion Zend/tests/037.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var_dump($x::$x);
--EXPECTF--
int(1)

Fatal error: Uncaught Error: Access to undeclared static property: Closure::$x in %s:%d
Fatal error: Uncaught Error: Access to undeclared static property Closure::$x in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d
2 changes: 1 addition & 1 deletion Zend/tests/access_modifiers_008.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ B2::test();

?>
--EXPECTF--
Fatal error: Call to protected method B1::f() from context 'B2' in %s on line %d
Fatal error: Call to protected method B1::f() from scope B2 in %s on line %d
2 changes: 1 addition & 1 deletion Zend/tests/access_modifiers_009.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ B2::test();
--EXPECTF--
bool(false)

Fatal error: Call to protected method B1::f() from context 'B2' in %s on line %d
Fatal error: Call to protected method B1::f() from scope B2 in %s on line %d
2 changes: 1 addition & 1 deletion Zend/tests/access_modifiers_010.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ new c;

?>
--EXPECTF--
Fatal error: Uncaught Error: Call to private method d::test2() from context 'a' in %s:%d
Fatal error: Uncaught Error: Call to private method d::test2() from scope a in %s:%d
Stack trace:
#0 %s(%d): a->test()
#1 %s(%d): c->__construct()
Expand Down
8 changes: 4 additions & 4 deletions Zend/tests/array_offset.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ Ensure "undefined offset" notice formats message correctly when undefined key is
echo "Done\n";
?>
--EXPECTF--
Notice: Undefined offset: -1 in %s on line 3
Notice: Undefined array key -1 in %s on line %d

Notice: Undefined offset: -1 in %s on line 4
Notice: Undefined array key -1 in %s on line %d

Notice: Undefined offset: -1 in %s on line 5
Notice: Undefined array key -1 in %s on line 5

Notice: Undefined offset: -1 in %s on line 6
Notice: Undefined array key -1 in %s on line 6
Done
2 changes: 1 addition & 1 deletion Zend/tests/array_unpack/classes.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ array(3) {
[2]=>
int(3)
}
Exception: Cannot declare self-referencing constant 'self::B'
Exception: Cannot declare self-referencing constant self::B
4 changes: 2 additions & 2 deletions Zend/tests/assign_dim_obj_null_return.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@ Cannot add element to the array as the next element is already occupied
Illegal offset type
Illegal offset type
Cannot use a scalar value as an array
Attempt to assign property 'foo' on bool
Attempt to assign property 'foo' on bool
Attempt to assign property "foo" on bool
Attempt to assign property "foo" on bool
5 changes: 2 additions & 3 deletions Zend/tests/attributes/003_ast_nodes.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,5 @@ array(1) {
}

int(1)
string(30) "Class 'MissingClass' not found"
string(30) "Class 'MissingClass' not found"

string(30) "Class "MissingClass" not found"
string(30) "Class "MissingClass" not found"
8 changes: 4 additions & 4 deletions Zend/tests/attributes/005_objects.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ string(7) "ERROR 2"
string(74) "A1::__construct(): Argument #1 ($name) must be of type string, array given"

string(7) "ERROR 3"
string(30) "Attribute class 'A2' not found"
string(30) "Attribute class "A2" not found"

string(7) "ERROR 4"
string(50) "Attribute constructor of class 'A3' must be public"
string(48) "Attribute constructor of class A3 must be public"

string(7) "ERROR 5"
string(71) "Attribute class 'A4' does not have a constructor, cannot pass arguments"
string(69) "Attribute class A4 does not have a constructor, cannot pass arguments"

string(7) "ERROR 6"
string(55) "Attempting to use non-attribute class 'A5' as attribute"
string(55) "Attempting to use non-attribute class "A5" as attribute"
2 changes: 1 addition & 1 deletion Zend/tests/attributes/006_filter.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ Array
string(7) "ERROR 1"
string(103) "ReflectionFunctionAbstract::getAttributes(): Argument #2 ($flags) must be a valid attribute filter flag"
string(7) "ERROR 2"
string(34) "Class 'SomeMissingClass' not found"
string(34) "Class "SomeMissingClass" not found"
4 changes: 2 additions & 2 deletions Zend/tests/attributes/013_class_scope.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ trait T1
class C2
{
use T1;

private const FOO = 'bar';
}

Expand Down Expand Up @@ -109,7 +109,7 @@ Array
[1] => bar
)
string(7) "ERROR 1"
string(36) "Undefined class constant 'self::FOO'"
string(28) "Undefined constant self::FOO"

bool(true)
string(3) "bar"
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/attributes/023_ast_node_in_validation.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ class A1 { }

?>
--EXPECTF--
Fatal error: Class 'Foo' not found in %s
Fatal error: Class "Foo" not found in %s on line %d
2 changes: 1 addition & 1 deletion Zend/tests/bug29015.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ object(stdClass)#1 (1) {
string(10) "string('')"
}

Fatal error: Uncaught Error: Cannot access property started with '\0' in %s:%d
Fatal error: Uncaught Error: Cannot access property starting with "\0" in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d
2 changes: 1 addition & 1 deletion Zend/tests/bug29883.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bool(false)
bool(true)
bool(true)

Warning: Uninitialized string offset: -10 in %s on line %d
Warning: Uninitialized string offset -10 in %s on line %d
string(0) ""
string(1) "u"
string(1) "u"
2 changes: 1 addition & 1 deletion Zend/tests/bug30519.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class test implements a {
}
?>
--EXPECTF--
Fatal error: Uncaught Error: Interface 'a' not found in %s:%d
Fatal error: Uncaught Error: Interface "a" not found in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d
2 changes: 1 addition & 1 deletion Zend/tests/bug30922.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var_dump($a instanceOf A);
echo "ok\n";
?>
--EXPECTF--
Fatal error: Uncaught Error: Interface 'RecurisiveFooFar' not found in %s:%d
Fatal error: Uncaught Error: Interface "RecurisiveFooFar" not found in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d
6 changes: 3 additions & 3 deletions Zend/tests/bug31098.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ ok
ok
ok

Warning: Attempt to read property 'wrong' on string in %s on line %d
Warning: Attempt to read property "wrong" on string in %s on line %d
ok

Warning: Illegal string offset 'wrong' in %s on line %d
Warning: Illegal string offset "wrong" in %s on line %d
ok
ok

Warning: Illegal string offset 'wrong' in %s on line %d
Warning: Illegal string offset "wrong" in %s on line %d
ok
2 changes: 1 addition & 1 deletion Zend/tests/bug31102.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Caught: Test1::__construct
Caught: {closure}
{closure}(Test3,3)

Fatal error: Uncaught Error: Class 'Test3' not found in %sbug31102.php(%d) : eval()'d code:1
Fatal error: Uncaught Error: Class "Test3" not found in %s:%d
Stack trace:
#0 %s(%d): eval()
#1 {main}
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/bug37632.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ B2::doTest
C2::test
B4::doTest

Fatal error: Uncaught Error: Call to protected C4::__construct() from context 'B4' in %sbug37632.php:%d
Fatal error: Uncaught Error: Call to protected C4::__construct() from scope B4 in %s:%d
Stack trace:
#0 %s(%d): B4::doTest()
#1 {main}
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/bug37667.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var_dump($obj);
--EXPECTF--
string(3) "bar"

Notice: Undefined offset: 2 in %sbug37667.php on line 16
Notice: Undefined array key 2 in %s on line %d
NULL
object(Test)#%d (1) {
["property":protected]=>
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/bug37811.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ string(3) "Foo"

Warning: Constants may only evaluate to scalar values, arrays or resources in %sbug37811.php on line %d

Fatal error: Uncaught Error: Undefined constant 'Baz' in %s:%d
Fatal error: Uncaught Error: Undefined constant "Baz" in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d
26 changes: 13 additions & 13 deletions Zend/tests/bug39018.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -64,39 +64,39 @@ print "\nDone\n";
--EXPECTF--
Warning: String offset cast occurred in %s on line %d

Warning: Uninitialized string offset: %s in %s on line %d
Warning: Uninitialized string offset %d in %s on line %d

Warning: Uninitialized string offset: 0 in %s on line %d
Warning: Uninitialized string offset 0 in %s on line %d

Warning: Uninitialized string offset: 0 in %s on line %d
Warning: Uninitialized string offset 0 in %s on line %d

Warning: String offset cast occurred in %s on line %d

Warning: Uninitialized string offset: %i in %s on line %d
Warning: Uninitialized string offset %i in %s on line %d

Warning: String offset cast occurred in %s on line %d

Warning: Uninitialized string offset: %i in %s on line %d
Warning: Uninitialized string offset %i in %s on line %d

Warning: Uninitialized string offset: 0 in %s on line %d
Warning: Uninitialized string offset 0 in %s on line %d

Warning: Uninitialized string offset: 4 in %s on line %d
Warning: Uninitialized string offset 4 in %s on line %d

Warning: Uninitialized string offset: 4 in %s on line %d
Warning: Uninitialized string offset 4 in %s on line %d

Warning: Uninitialized string offset: 4 in %s on line %d
Warning: Uninitialized string offset 4 in %s on line %d

Warning: Uninitialized string offset: 4 in %s on line %d
Warning: Uninitialized string offset 4 in %s on line %d

Warning: Uninitialized string offset: 4 in %s on line %d
Warning: Uninitialized string offset 4 in %s on line %d

Warning: String offset cast occurred in %s on line %d

Warning: Uninitialized string offset: 12 in %s on line %d
Warning: Uninitialized string offset 12 in %s on line %d

Warning: String offset cast occurred in %s on line %d

Warning: Uninitialized string offset: 12 in %s on line %d
Warning: Uninitialized string offset 12 in %s on line %d

Warning: String offset cast occurred in %s on line %d

Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/bug39304.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ Bug #39304 (Segmentation fault with list unpacking of string offset)
var_dump($a,$b);
?>
--EXPECTF--
Warning: Uninitialized string offset: 0 in %s on line %d
Warning: Uninitialized string offset 0 in %s on line %d
NULL
NULL
Loading