diff options
author | Nikita Popov <nikic@php.net> | 2016-03-12 16:00:04 +0100 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2016-03-25 19:11:37 +0100 |
commit | 8e5b139732893d2a5f6ba3ae0a0b2b5cf6dba09f (patch) | |
tree | 5ee7cc45d90120a3875ddfc65a2bb7d2ad34bafb /Zend/tests/new_args_without_ctor.phpt | |
parent | 24551ed6c8f9e8cee6d12aa792f83648eead7ff4 (diff) | |
download | php-git-8e5b139732893d2a5f6ba3ae0a0b2b5cf6dba09f.tar.gz |
Evaluate arguments of new for classes without ctor
ML: http://markmail.org/message/4b3mk7jid64zvz34
Diffstat (limited to 'Zend/tests/new_args_without_ctor.phpt')
-rw-r--r-- | Zend/tests/new_args_without_ctor.phpt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Zend/tests/new_args_without_ctor.phpt b/Zend/tests/new_args_without_ctor.phpt new file mode 100644 index 0000000000..91456890d2 --- /dev/null +++ b/Zend/tests/new_args_without_ctor.phpt @@ -0,0 +1,10 @@ +--TEST-- +Argument of new on class without constructor are evaluated +--FILE-- +<?php + +new stdClass(print 'a', print 'b'); + +?> +--EXPECT-- +ab |