ÿØÿà JFIF ÿÛ „ ( %!1!%*+...983,7(-.-
File manager
File manager - Edit - /opt/alt/tests/alt-php84-pecl-yaml_2.2.3-1.el8/tests/bug_64019.phpt
Back
--TEST-- Test PECL bug #64019 --SKIPIF-- <?php if(!extension_loaded('yaml')) die('skip yaml n/a'); ?> --FILE-- <?php $yaml_code = <<<YAML configAnchors: - &wrongAnchor: # This last colon (:) makes the script die configKey: configValue config: <<: *wrongAnchor YAML; var_dump(yaml_parse($yaml_code)); $yaml_code = <<<YAML config: <<: YAML; var_dump(yaml_parse($yaml_code)); ?> --EXPECT-- array(2) { ["configAnchors"]=> array(1) { [0]=> array(2) { [""]=> NULL ["configKey"]=> string(11) "configValue" } } ["config"]=> array(1) { ["<<"]=> NULL } } array(1) { ["config"]=> array(1) { ["<<"]=> NULL } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.6 |
proxy
|
phpinfo
|
Settings