Re: Nowdocs revised

From: Date: Fri, 17 Aug 2007 05:32:09 +0000
Subject: Re: Nowdocs revised
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-31666@lists.php.net to get a copy of this message
On 8/17/07, Stanislav Malyshev <stas@zend.com> wrote: > > 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. True, but the result is the same. The new functions/classes can't be used (only some rare additions can be efficiently emulated in user land). > > <<< 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 ;) In this case, it will be yet another "Mark all as read" thread :-) Cheers, --Pierre

« previous php.internals (#31666) next »