com php-src: Add missed tests for FETCH_GLOBAL_LOCK chang e: Zend/tests/global_with_side_effect_name.phpt

From: Date: Thu, 10 Dec 2015 18:17:17 +0000
Subject: com php-src: Add missed tests for FETCH_GLOBAL_LOCK chang e: Zend/tests/global_with_side_effect_name.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-90213@lists.php.net to get a copy of this message
Commit: 288cc6e1925fad43addaaa6db2dd73ea79ef44ec Author: Nikita Popov <nikic@php.net> Thu, 10 Dec 2015 19:17:17 +0100 Parents: 11f2a393f81c10b0cb87a1d66e335530dd242653 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=288cc6e1925fad43addaaa6db2dd73ea79ef44ec Log: Add missed tests for FETCH_GLOBAL_LOCK change Changed paths: A Zend/tests/global_with_side_effect_name.phpt Diff: diff --git a/Zend/tests/global_with_side_effect_name.phpt b/Zend/tests/global_with_side_effect_name.phpt new file mode 100644 index 0000000..a1ee240 --- /dev/null +++ b/Zend/tests/global_with_side_effect_name.phpt @@ -0,0 +1,22 @@ +--TEST-- +Global variable import using a name with side effects +--FILE-- +<?php + +function sf($arg) { + echo "called\n"; + return $arg; +} + +function test() { + global ${sf("a")}; + var_dump($a); +} + +$a = 42; +test(); + +?> +--EXPECT-- +called +int(42)

« previous php.cvs (#90213) next »