0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-11-15 01:28:42 +00:00
htmlpurifier/tests/HTMLPurifier/PHPT/ze1_compatibility_mode.phpt
Edward Z. Yang 598c5b60c9 Add sanity check against ze1_compatibility_mode.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
2010-11-12 16:15:03 +00:00

15 lines
414 B
PHP

--TEST--
Error with zend.ze1_compatibility_mode test
--PRESKIPIF--
<?php
if (version_compare(PHP_VERSION, '5.3.0') >= 0) {
echo 'skip - ze1_compatibility_mode not present in PHP 5.3 or later';
}
--INI--
zend.ze1_compatibility_mode = 1
--FILE--
<?php
require '../library/HTMLPurifier.auto.php';
--EXPECTF--
Fatal error: HTML Purifier is not compatible with zend.ze1_compatibility_mode; please turn it off in %s