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

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 3 different diffs reported by users for this test.

Count Diff
1 (33%)
001+ Wed Jun 3 18:50:45 2020 (36541): Fatal Error Unable to allocate shared memory segment of 134217728 bytes: unknown: Inappropriate ioctl for device (25) 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 (33%)
001+ Wed Dec 22 09:52:57 2021 (8157): 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 (33%)
001+ Termsig=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- }