php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #52001
Patch patch-dont-ruine-uninitialized-ptr revision 2010-06-08 02:40 UTC by boldin dot pavel at gmail dot com
Patch patch-bug-52001-tests revision 2010-06-07 23:27 UTC by boldin dot pavel at gmail dot com
Patch patch-zend-fetch-make-ref-uninitialized-ptr revision 2010-06-06 17:03 UTC by boldin dot pavel at gmail dot com

Patch patch-bug-52001-tests for Scripting Engine problem Bug #52001

Patch version 2010-06-07 23:27 UTC

Return to Bug #52001 | Download this patch
Patch Revisions:

Developer: boldin.pavel@gmail.com

diff -NurpP -x '*~' php-5.3.2.orig/tests/lang//bug52001-1.phpt php-5.3.2.new/tests/lang//bug52001-1.phpt
--- php-5.3.2.orig/tests/lang//bug52001-1.phpt	1970-01-01 03:00:00.000000000 +0300
+++ php-5.3.2.new/tests/lang//bug52001-1.phpt	2010-06-08 03:23:50.000000000 +0400
@@ -0,0 +1,18 @@
+--TEST--
+Bug #52001 (all variables equals last one after variable variable use)
+--FILE--
+<?php
+error_reporting(error_reporting() & ~E_NOTICE);
+f(0, $$var);
+$x = 0;
+$y = 1;
+$z = 2;
+var_dump($x);
+var_dump($y);
+var_dump($z);
+function f($a, $b) {}
+?>
+--EXPECT--
+int(0)
+int(1)
+int(2)
diff -NurpP -x '*~' php-5.3.2.orig/tests/lang//bug52001-2.phpt php-5.3.2.new/tests/lang//bug52001-2.phpt
--- php-5.3.2.orig/tests/lang//bug52001-2.phpt	1970-01-01 03:00:00.000000000 +0300
+++ php-5.3.2.new/tests/lang//bug52001-2.phpt	2010-06-08 03:23:56.000000000 +0400
@@ -0,0 +1,20 @@
+--TEST--
+Bug #52001 (all variables equals last one after variable variable use, class static)
+--FILE--
+<?php
+error_reporting(error_reporting() & ~E_NOTICE);
+class t {
+    public static function f($a, $b) { }
+}
+t::f(0, $$var);
+$x = 0;
+$y = 1;
+$z = 2;
+var_dump($x);
+var_dump($y);
+var_dump($z);
+?>
+--EXPECT--
+int(0)
+int(1)
+int(2)
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Sat Apr 19 06:02:27 2014 UTC