import_zend_test.py now executes CLEAN sections properly
commitb60c133884f4af5b0073909ffb157c8a134ca878
authorTim Siebels <tim_siebels_aurich@yahoo.de>
Tue, 7 Oct 2014 19:14:17 +0000 (7 12:14 -0700)
committerhhvm-bot <hhvm-bot@fb.com>
Tue, 7 Oct 2014 19:30:23 +0000 (7 12:30 -0700)
treeabba0c328527f6f56d0ad72f090b1d03aa7d334d
parent154ca0e1a483947767c2e57e92d12a450c309c7b
import_zend_test.py now executes CLEAN sections properly

Summary: php-src is inconsistent with test's CLEAN section. Sometimes it starts with php open tags sometimes it doesn't.
e.g. https://github.com/facebook/hhvm/blob/master/hphp/test/zend/bad/ext/gd/tests/imagegd_nullbyte_injection.php

Also, php-src doesn't execute the CLEAN section when the test is executed. So all errors will be ignored. set error_reporting to 0 when the CLEAN section begins to ignore all errors as well.

Talked to ptarjan on IRC because my reimport will do stupid things and maybe a really nice oncall will do me the favor and reimport the whole thing? :)

Also PHP 5.6.1 is out, I don't know if it makes sense to start the import of the new version without importing 5.6.0 again.

From what I see from my import this should fix a bunch of bad tests :)
Closes https://github.com/facebook/hhvm/pull/3910

Reviewed By: @ptarjan, @JoelMarcey

Differential Revision: D1597942
hphp/test/tools/import_zend_test.py