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

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+ Sun Apr 17 22:53:05 2022 (23626): Fatal Error Preloading failed to getpwnam("www-data") 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+ Sat Dec 18 06:07:24 2021 (31492): Message Cached script %s/bug63217.php'
1 (33%)
001+ Mon Feb 14 11:44:45 2022 (232915): 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- }