xref: /PHP-8.2/ext/opcache/tests/bug69125.phpt (revision e9f783fc)
1--TEST--
2Bug #69125 (Array numeric string as key)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6--EXTENSIONS--
7opcache
8--FILE--
9<?php
10
11const SZERO = '0';
12const SONE = '1';
13
14$array[SZERO] = "okey";
15$array[1] = "okey";
16
17var_dump($array[SZERO]);
18var_dump($array[SONE]);
19?>
20--EXPECT--
21string(4) "okey"
22string(4) "okey"
23