mirror of
https://github.com/php/php-src.git
synced 2025-01-08 12:04:24 +08:00
32a1ebbd43
These are no longer needed after https://wiki.php.net/rfc/always_enable_json Closes GH-5637
15 lines
252 B
PHP
15 lines
252 B
PHP
--TEST--
|
|
json_encode() with non-packed array that should be encoded as an array rather than object
|
|
--FILE--
|
|
<?php
|
|
$a = array(1, 2, 3, 'foo' => 'bar');
|
|
unset($a['foo']);
|
|
|
|
var_dump(json_encode($a));
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECT--
|
|
string(7) "[1,2,3]"
|
|
Done
|
|
|