mustangostang / spyc

A simple YAML loader/dumper class for PHP
MIT License
701 stars 207 forks source link

Fixed syntax error in spyc.php4 #17

Closed monochromegane closed 11 years ago

monochromegane commented 11 years ago

spyc.php4 is not working on PHP4.4.6.

Parse error: syntax error, unexpected T_NEW in /MY_PHP4_DIR/spyc/php4/spyc.php4 on line 322
mustangostang commented 11 years ago

The PHP4 version is generated automatically from the PHP5 version, so changes made to this file directly will be overwritten with the next run of 5to4.php. You can make the corresponding changes to the 5to4.php (I believe the only problem is the exception call? Let it die with a message).