From: SVN Migration Date: Sat, 15 Feb 2003 15:15:15 +0000 (+0000) Subject: This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. X-Git-Tag: php-4.3.2RC1~202 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac73fa6482f8123b865fc78784e422418e43dc6b;p=php This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. --- diff --git a/ext/mysqli/tests/045.phpt b/ext/mysqli/tests/045.phpt new file mode 100644 index 0000000000..5ca0f2ae02 --- /dev/null +++ b/ext/mysqli/tests/045.phpt @@ -0,0 +1,28 @@ +--TEST-- +mysqli_bind_result (SHOW) +--FILE-- + +--EXPECT-- +array(2) { + [0]=> + string(4) "port" + [1]=> + string(4) "3306" +} diff --git a/tests/lang/bug22231.phpt b/tests/lang/bug22231.phpt new file mode 100644 index 0000000000..0d4d19d2e5 --- /dev/null +++ b/tests/lang/bug22231.phpt @@ -0,0 +1,39 @@ +--TEST-- +Bug #22231 (segfault when returning a global variable by reference) +--FILE-- +fubar); +unset($bar); +$bar = &foo(); +var_dump($bar->fubar); + +$foo = &foo(); +var_dump($foo); +var_dump($foo->fubar); +unset($foo); +$foo = &foo(); +var_dump($foo->fubar); +?> +--EXPECT-- +object(foo)(1) { + ["fubar"]=> + string(5) "fubar" +} +string(5) "fubar" +string(5) "fubar" +object(foo)(1) { + ["fubar"]=> + string(5) "fubar" +} +string(5) "fubar" +string(5) "fubar"