From fa1abb567798fb50a2d84e82021b79909c6aefba Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 2 Jul 2015 02:00:34 +0300 Subject: Fixed memory leak because of incorrect 'if ();' optimization --- ext/opcache/tests/leak_001.phpt | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 ext/opcache/tests/leak_001.phpt (limited to 'ext/opcache/tests') diff --git a/ext/opcache/tests/leak_001.phpt b/ext/opcache/tests/leak_001.phpt new file mode 100644 index 0000000000..c590943fcb --- /dev/null +++ b/ext/opcache/tests/leak_001.phpt @@ -0,0 +1,34 @@ +--TEST-- +Leak 001: Incorrect 'if ();' optimization +--INI-- +opcache.enable=1 +opcache.enable_cli=1 +opcache.file_cache_only=0 +--SKIPIF-- + +--FILE-- + +OK +--EXPECT-- +OK -- cgit v1.2.1