Re: Nowdocs revised

From: Date: Thu, 16 Aug 2007 23:24:32 +0000
Subject: Re: Nowdocs revised
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-31659@lists.php.net to get a copy of this message
I don't see a difference between a "fatal error call to undefined function" and or a parse error. It can go without problem in 5.3.
Ah, there is a difference - you can do function_exists to check for a function, but you can do nothing if your file doesn't parse.
<<< was never obvious, there is no obvious string to use in this case (not obvious for everyone and his mother).
Perl does <<FOO and <<'FOO' and I think in this case difference is more clear. I'm not sure this is the way, but it can be an option. Everybody is welcome to propose - maybe it will be as much fun as the namespace separator thread ;) -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#31659) next »