PHP5 compatibility: Allow NULL as element handler
commit18694c115a0ce7670b563a3348a192694bb506f0
authorJames Zeng <zeng@fb.com>
Fri, 14 Mar 2014 16:54:27 +0000 (14 09:54 -0700)
committerSara Golemon <sgolemon@fb.com>
Fri, 14 Mar 2014 18:18:57 +0000 (14 11:18 -0700)
tree8a55637ad37444dba09e53ce15e1c2f3f5373244
parente49e014f1823fc6a1e51faa681978d2447975668
PHP5 compatibility: Allow NULL as element handler

Allow NULL as element handler, as tested in xml011.php

Reviewed By: @ptarjan

Differential Revision: D1221001
hphp/runtime/ext/ext_xml.cpp
hphp/test/zend/good/ext/xml/tests/xml011.php [moved from hphp/test/zend/bad/ext/xml/tests/xml011.php with 99% similarity]
hphp/test/zend/good/ext/xml/tests/xml011.php.expectf [moved from hphp/test/zend/bad/ext/xml/tests/xml011.php.expectf with 100% similarity]
hphp/test/zend/good/ext/xml/tests/xml011.php.skipif [moved from hphp/test/zend/bad/ext/xml/tests/xml011.php.skipif with 100% similarity]