summaryrefslogtreecommitdiff
path: root/Zend/tests/new_args_without_ctor.phpt
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2016-03-12 16:00:04 +0100
committerNikita Popov <nikic@php.net>2016-03-25 19:11:37 +0100
commit8e5b139732893d2a5f6ba3ae0a0b2b5cf6dba09f (patch)
tree5ee7cc45d90120a3875ddfc65a2bb7d2ad34bafb /Zend/tests/new_args_without_ctor.phpt
parent24551ed6c8f9e8cee6d12aa792f83648eead7ff4 (diff)
downloadphp-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.phpt10
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