Skip to content

Commit 53158f2

Browse files
committed
testcase for 67468 (only for debug build, as I could not create a stable segfault without loading other exts like pgsql)
1 parent 3058b87 commit 53158f2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Zend/tests/67468.phpt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--TEST--
2+
Bug #67468 (Segfault in highlight_file()/highlight_string())
3+
--SKIPIF--
4+
<?php if(!function_exists("leak")) print "skip only for debug builds"; ?>
5+
--FILE--
6+
<?php
7+
highlight_string("<?php __CLASS__;", true);
8+
echo "done";
9+
?>
10+
--EXPECT--
11+
done

0 commit comments

Comments
 (0)