]> granicus.if.org Git - php/commitdiff
testcase for 67468 (only for debug build, as I could not create a stable segfault...
authorFerenc Kovacs <tyrael@php.net>
Mon, 23 Jun 2014 08:10:17 +0000 (10:10 +0200)
committerFerenc Kovacs <tyrael@php.net>
Mon, 23 Jun 2014 08:10:17 +0000 (10:10 +0200)
Zend/tests/67468.phpt [new file with mode: 0644]

diff --git a/Zend/tests/67468.phpt b/Zend/tests/67468.phpt
new file mode 100644 (file)
index 0000000..7672176
--- /dev/null
@@ -0,0 +1,11 @@
+--TEST--
+Bug #67468 (Segfault in highlight_file()/highlight_string())
+--SKIPIF--
+<?php if(!function_exists("leak")) print "skip only for debug builds"; ?>
+--FILE--
+<?php
+highlight_string("<?php __CLASS__;", true);
+echo "done";
+?>
+--EXPECT--
+done