note 108296 rejected from functions.arguments by sp
| From: | sp@php.net | Date: | Mon, 16 Apr 2012 16:11:39 +0000 |
| Subject: | note 108296 rejected from functions.arguments by sp | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-187180@lists.php.net to get a copy of this message | ||
Note Submitter: pangxiezhou at gmail dot com
----
constant expression does not include ânew ClassNameâï¼
even (object)1.
<?php
function test($var=(object)1){
echo $var->scalar;
}
test();
?>
output:'Parse error.....'