1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 00:32:23 +01:00
Files
archived-php-src/tests/classes/array_conversion_keys.phpt
Gabriel Caruso 4aabfe911e Revert "Update versions for PHP 8.0.21"
This reverts commit 6eedacdf15.
2022-07-06 12:06:48 +02:00

19 lines
381 B
PHP

--TEST--
Verifies the correct conversion of objects to arrays
--FILE--
<?php
class foo
{
private $private = 'private';
protected $protected = 'protected';
public $public = 'public';
}
var_export((array) new foo);
?>
--EXPECT--
array (
'' . "\0" . 'foo' . "\0" . 'private' => 'private',
'' . "\0" . '*' . "\0" . 'protected' => 'protected',
'public' => 'public',
)