|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-01-21 22:22 UTC] alayn at irontec dot com
[2013-01-21 22:22 UTC] alayn at irontec dot com
-Operating System:
+Operating System: Linux/Debian
-PHP Version: Irrelevant
+PHP Version: 5.4.4
[2013-11-16 21:25 UTC] bd808@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: bd808
[2013-11-16 21:25 UTC] bd808@php.net
[2013-11-19 05:47 UTC] bd808@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 13 01:00:01 2025 UTC |
Description: ------------ A Segmentation fault occurs if a colon is at the end of a Yaml anchor. Test script: --------------- test.yaml ---------- configAnchors: - &wrongAnchor: # This last colon (:) makes the script die configKey: configValue config: <<: *wrongAnchor test.php --------- <?php yaml_parse_file('test.yaml'); Expected result: ---------------- PHP Warning: yaml_parse_file(): scanning error encountered during parsing: did not find expected alphabetic or numeric character (line 2, column 17), context while scanning an anchor (line 2, column 5) in /path/to/test.php on line 2 Actual result: -------------- Segmentation fault