Test: /Zend/tests/bug63217.phpt - Version 7.4.29        

Bug #63217 Constant numeric strings become integers when used as ArrayAccess offset
Submitted: 2012-10-04 10:14:49 Modified: 2017-07-03 02:18:12
From: kmsheng Assigned:
Status: Closed Package: Arrays related
PHP Version: 5.4Git-2012-10-04 (Git) OS: freebsd

There are 2 different diffs reported by users for this test.

Count Diff
1 (50%)
001+ Sun May 29 19:40:54 2022 (7506): Fatal Error Unable to allocate shared memory segment of 134217728 bytes: unknown: Success (0) 001- offsetExists given string(1) "0" 002- offsetExists given string(3) "123" 003- offsetUnset given string(1) "0" 004- offsetUnset given string(3) "123" 005- offsetSet given string(1) "0" 006- offsetSet given string(3) "123" 007- offsetGet given string(1) "0" 008- offsetGet given string(3) "123" 009- offsetExists given string(1) "0" 010- offsetExists given string(3) "123" 011- offsetUnset given string(1) "0" 012- offsetUnset given string(3) "123" 013- offsetSet given string(1) "0" 014- offsetSet given string(3) "123" 015- offsetGet given string(1) "0" 016- offsetGet given string(3) "123" 017- string(2) "10" 018- array(3) { 019- [123]=> 020- int(1) 021- [321]=> 022- int(2) 023- ["abc"]=> 024- int(3) 025- } 026- array(3) { 027- [123]=> 028- int(1) 029- [321]=> 030- int(2) 031- ["abc"]=> 032- int(3) 033- }
1 (50%)
001+ Mon Apr 25 18:18:13 2022 (9092): Fatal Error Unable to allocate shared memory segment of 134217728 bytes: unknown: No such file or directory (2) 001- offsetExists given string(1) "0" 002- offsetExists given string(3) "123" 003- offsetUnset given string(1) "0" 004- offsetUnset given string(3) "123" 005- offsetSet given string(1) "0" 006- offsetSet given string(3) "123" 007- offsetGet given string(1) "0" 008- offsetGet given string(3) "123" 009- offsetExists given string(1) "0" 010- offsetExists given string(3) "123" 011- offsetUnset given string(1) "0" 012- offsetUnset given string(3) "123" 013- offsetSet given string(1) "0" 014- offsetSet given string(3) "123" 015- offsetGet given string(1) "0" 016- offsetGet given string(3) "123" 017- string(2) "10" 018- array(3) { 019- [123]=> 020- int(1) 021- [321]=> 022- int(2) 023- ["abc"]=> 024- int(3) 025- } 026- array(3) { 027- [123]=> 028- int(1) 029- [321]=> 030- int(2) 031- ["abc"]=> 032- int(3) 033- }