diff options
author | Aaron Piotrowski <aaron@trowski.com> | 2016-06-10 22:02:23 -0500 |
---|---|---|
committer | Aaron Piotrowski <aaron@trowski.com> | 2016-06-10 22:02:23 -0500 |
commit | e3c681aa5cc71122a8d2fae42e6513fc413ccac8 (patch) | |
tree | 5f1df62f7b666028edb0ee1adf083a52d63df45a /Zend/tests/dynamic_call_007.phpt | |
parent | fb4e3085cbaa76eb8f28eebf848a81d1c0190067 (diff) | |
parent | 792e89385ca6fc722a03590722eb7745a2374720 (diff) | |
download | php-git-e3c681aa5cc71122a8d2fae42e6513fc413ccac8.tar.gz |
Merge branch 'master' into throw-error-in-extensions
Diffstat (limited to 'Zend/tests/dynamic_call_007.phpt')
-rw-r--r-- | Zend/tests/dynamic_call_007.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Zend/tests/dynamic_call_007.phpt b/Zend/tests/dynamic_call_007.phpt new file mode 100644 index 0000000000..61ae182914 --- /dev/null +++ b/Zend/tests/dynamic_call_007.phpt @@ -0,0 +1,17 @@ +--TEST-- +Dynamic calls to scope introspection functions are forbidden (misoptimization) +--FILE-- +<?php + +function test() { + $i = 1; + array_map('extract', [['i' => new stdClass]]); + $i += 1; + var_dump($i); +} +test(); + +?> +--EXPECTF-- +Warning: Cannot call extract() dynamically in %s on line %d +int(2) |