From 89f2c547738511dc9db9b90a310263743eaa120e Mon Sep 17 00:00:00 2001 From: SVN Migration Date: Mon, 26 May 2003 03:55:09 +0000 Subject: [PATCH] This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. --- ext/standard/tests/array/bug23788.phpt | 24 ++++++++++++++++++++++++ tests/lang/bug17115.phpt | 16 ++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 ext/standard/tests/array/bug23788.phpt create mode 100644 tests/lang/bug17115.phpt diff --git a/ext/standard/tests/array/bug23788.phpt b/ext/standard/tests/array/bug23788.phpt new file mode 100644 index 0000000000..022b3cecd4 --- /dev/null +++ b/ext/standard/tests/array/bug23788.phpt @@ -0,0 +1,24 @@ +--TEST-- +Bug #23788 (*_replace() clobbers referenced array elements) +--FILE-- + +--EXPECT-- +array(2) { + [0]=> + &int(123) + [1]=> + &bool(true) +} +array(2) { + [0]=> + &int(123) + [1]=> + &bool(true) +} diff --git a/tests/lang/bug17115.phpt b/tests/lang/bug17115.phpt new file mode 100644 index 0000000000..0cb3bf44d2 --- /dev/null +++ b/tests/lang/bug17115.phpt @@ -0,0 +1,16 @@ +--TEST-- +Bug #17115 (lambda functions produce segfault with static vars) +--FILE-- + +--EXPECT-- +int(0) +int(1) +int(2) -- 2.50.1