diff options
| author | Nikita Popov <nikic@php.net> | 2015-11-07 11:48:21 +0100 |
|---|---|---|
| committer | Nikita Popov <nikic@php.net> | 2015-11-07 12:04:51 +0100 |
| commit | 99d818f1e901d4eb411a6458a7800df071d8284a (patch) | |
| tree | 89f0aafc72adfccfa055e169aefacd37a047a4ec /Zend/tests/varSyntax | |
| parent | 00b37e718d002612e1a3cfcc01f62b9a64826960 (diff) | |
| download | php-git-99d818f1e901d4eb411a6458a7800df071d8284a.tar.gz | |
Don't propagate into ops that error on non-string
To properly support this make update_opN_const fallible -- they
are not always called through replace_with_const.
Diffstat (limited to 'Zend/tests/varSyntax')
| -rw-r--r-- | Zend/tests/varSyntax/static_prop_on_int_expr_class.phpt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/tests/varSyntax/static_prop_on_int_expr_class.phpt b/Zend/tests/varSyntax/static_prop_on_int_expr_class.phpt new file mode 100644 index 0000000000..c7c44d5694 --- /dev/null +++ b/Zend/tests/varSyntax/static_prop_on_int_expr_class.phpt @@ -0,0 +1,11 @@ +--TEST-- +Static property access on constexpr class evaluating to integer +--FILE-- +<?php +((int)1)::$b; +?> +--EXPECTF-- +Fatal error: Uncaught Error: Class name must be a valid object or a string in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d |
