[PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
vrana Fri Aug 17 01:59:28 2007 UTC Modified files: /phpdoc/en/reference/misc/functions eval.xml Log: Grammar (thanks to Mike Ford) http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/misc/functions/eval.xml?r1=1.23&r2=1.24&diff_format=u Index: phpdoc/en/reference/misc/functions/eval.xml diff -u phpdoc/en/reference/misc/functions/eval.xml:1.23 phpdoc/en/reference/misc/functions/eval.xml:1.24 --- phpdoc/en/reference/misc/functions/eval.xml:1.23Thu Aug 16 13:10:28 2007 +++ phpdoc/en/reference/misc/functions/eval.xml Fri Aug 17 01:59:28 2007 @@ -1,5 +1,5 @@ - + http://docbook.org/ns/docbook";> eval @@ -58,11 +58,11 @@ As of PHP 4, eval returns &null; unless return is called in the evaluated code, in which case - the value passed to return is returned. In case of a - parse error in the evaluated code, eval returns - &false;. Normal code continues in execution after parse error in - eval and this error can not be catched by - set_error_handler. + the value passed to return is returned. If there is a + parse error in the evaluated code, eval returns + &false; and execution of the following code continues normally. It is + not possible to catch a parse error in eval + using set_error_handler.
Re: [PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
Ford, Mike wrote: > There's a couple of grammatical errors in there, and the style could be > improved some; Thanks for spotting, feel free to fix my Engrish :-). Jakub Vrana
RE: [PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
On 16 August 2007 14:10, Jakub Vrana wrote: > vrana Thu Aug 16 13:10:28 2007 UTC > > Modified files: > /phpdoc/en/reference/misc/functions eval.xml > Log: > Parse error (bug #41890) > In case of a > parse error in the evaluated code, > eval returns > - &false;. > + &false;. Normal code continues in execution after parse error in > + eval and this error can not be catched by > + set_error_handler. There's a couple of grammatical errors in there, and the style could be improved some; I suggest rewriting the whole of the last two sentences like this: If there is a parse error in the evaluated code, eval returns &false; and execution of the following code continues normally. It is not possible to catch a parse error in eval using set_error_handler. Cheers! Mike Mike Ford, Electronic Information Services Adviser, JG125, The Headingley Library James Graham Building, Headingley Campus Tel: extn 24730Fax: extn 23211 To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm
[PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
vrana Thu Aug 16 13:10:28 2007 UTC Modified files: /phpdoc/en/reference/misc/functions eval.xml Log: Parse error (bug #41890) http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/misc/functions/eval.xml?r1=1.22&r2=1.23&diff_format=u Index: phpdoc/en/reference/misc/functions/eval.xml diff -u phpdoc/en/reference/misc/functions/eval.xml:1.22 phpdoc/en/reference/misc/functions/eval.xml:1.23 --- phpdoc/en/reference/misc/functions/eval.xml:1.22Sat Jul 21 05:36:52 2007 +++ phpdoc/en/reference/misc/functions/eval.xml Thu Aug 16 13:10:28 2007 @@ -1,5 +1,5 @@ - + http://docbook.org/ns/docbook";> eval @@ -60,7 +60,9 @@ return is called in the evaluated code, in which case the value passed to return is returned. In case of a parse error in the evaluated code, eval returns - &false;. + &false;. Normal code continues in execution after parse error in + eval and this error can not be catched by + set_error_handler.
Re: [PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
On Jul 21, 2007, at 12:37 AM, Hannes Magnusson wrote: On 7/21/07, Nicolas Bérard-Nault <[EMAIL PROTECTED]> wrote: nicobn Sat Jul 21 05:36:52 2007 UTC Modified files: /phpdoc/en/reference/misc/functions eval.xml Log: Removed reference to PHP3. Out of curiosity, why? There is at least 160 other notes about PHP3 in the docs, should those be removed too? In IRC I mentioned moving PHP 3 documentation out and through the excitement Nicolas removed this. I started planning the move, and initiating the move, and hopefully will know enough to propose something here today. It might be time :) But no, people should not remove these. Regards, Philip
Re: [PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
On 7/21/07, Nicolas Bérard-Nault <[EMAIL PROTECTED]> wrote: nicobn Sat Jul 21 05:36:52 2007 UTC Modified files: /phpdoc/en/reference/misc/functions eval.xml Log: Removed reference to PHP3. Out of curiosity, why? There is at least 160 other notes about PHP3 in the docs, should those be removed too? -Hannes
[PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
nicobn Sat Jul 21 05:36:52 2007 UTC Modified files: /phpdoc/en/reference/misc/functions eval.xml Log: Removed reference to PHP3. http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/misc/functions/eval.xml?r1=1.21&r2=1.22&diff_format=u Index: phpdoc/en/reference/misc/functions/eval.xml diff -u phpdoc/en/reference/misc/functions/eval.xml:1.21 phpdoc/en/reference/misc/functions/eval.xml:1.22 --- phpdoc/en/reference/misc/functions/eval.xml:1.21Wed Jun 20 22:24:57 2007 +++ phpdoc/en/reference/misc/functions/eval.xml Sat Jul 21 05:36:52 2007 @@ -1,5 +1,5 @@ - + http://docbook.org/ns/docbook";> eval @@ -62,9 +62,6 @@ parse error in the evaluated code, eval returns &false;. - - In PHP 3, eval does not return a value. -
[PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml exit.xml
colder Fri Mar 9 23:23:18 2007 UTC Modified files: /phpdoc/en/reference/misc/functions eval.xml exit.xml Log: Document language constructs using the entity http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/misc/functions/eval.xml?r1=1.19&r2=1.20&diff_format=u Index: phpdoc/en/reference/misc/functions/eval.xml diff -u phpdoc/en/reference/misc/functions/eval.xml:1.19 phpdoc/en/reference/misc/functions/eval.xml:1.20 --- phpdoc/en/reference/misc/functions/eval.xml:1.19Sun Feb 25 01:51:37 2007 +++ phpdoc/en/reference/misc/functions/eval.xml Fri Mar 9 23:23:18 2007 @@ -1,5 +1,5 @@ - + eval @@ -97,6 +97,9 @@ &reftitle.notes; + + ¬e.language-construct; + &tip.ob-capture; http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/misc/functions/exit.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc/en/reference/misc/functions/exit.xml diff -u phpdoc/en/reference/misc/functions/exit.xml:1.13 phpdoc/en/reference/misc/functions/exit.xml:1.14 --- phpdoc/en/reference/misc/functions/exit.xml:1.13Mon Feb 19 00:03:13 2007 +++ phpdoc/en/reference/misc/functions/exit.xml Fri Mar 9 23:23:18 2007 @@ -1,5 +1,5 @@ - + exit @@ -101,11 +101,9 @@ &reftitle.notes; - - -This is not a real function, but a language construct. - - + + ¬e.language-construct; + This language construct is equivalent to die.
[PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
takagi Sun Feb 25 01:51:37 2007 UTC Modified files: /phpdoc/en/reference/misc/functions eval.xml Log: typo. http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/misc/functions/eval.xml?r1=1.18&r2=1.19&diff_format=u Index: phpdoc/en/reference/misc/functions/eval.xml diff -u phpdoc/en/reference/misc/functions/eval.xml:1.18 phpdoc/en/reference/misc/functions/eval.xml:1.19 --- phpdoc/en/reference/misc/functions/eval.xml:1.18Mon Feb 19 00:03:13 2007 +++ phpdoc/en/reference/misc/functions/eval.xml Sun Feb 25 01:51:37 2007 @@ -1,5 +1,5 @@ - + eval @@ -39,7 +39,7 @@ code_str - The code string to be avaluated. + The code string to be evaluated. code_str does not have to contain PHP Opening tags.
[PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
jsgoupilWed May 24 15:50:37 2006 UTC Modified files: /phpdoc/en/reference/misc/functions eval.xml Log: removed unwanted space http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/misc/functions/eval.xml?r1=1.15&r2=1.16&diff_format=u Index: phpdoc/en/reference/misc/functions/eval.xml diff -u phpdoc/en/reference/misc/functions/eval.xml:1.15 phpdoc/en/reference/misc/functions/eval.xml:1.16 --- phpdoc/en/reference/misc/functions/eval.xml:1.15Wed May 24 15:18:38 2006 +++ phpdoc/en/reference/misc/functions/eval.xml Wed May 24 15:50:37 2006 @@ -1,5 +1,5 @@ - + @@ -17,7 +17,7 @@ code_str as PHP code. Among other things, this can be useful for storing code in a database text field for later execution. code_str does not have to - contain PHP Opening + contain PHP Opening tags.
[PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
simpWed May 24 15:18:38 2006 UTC Modified files: /phpdoc/en/reference/misc/functions eval.xml Log: rewording to simplify the text thanks for the hint :) http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/misc/functions/eval.xml?r1=1.14&r2=1.15&diff_format=u Index: phpdoc/en/reference/misc/functions/eval.xml diff -u phpdoc/en/reference/misc/functions/eval.xml:1.14 phpdoc/en/reference/misc/functions/eval.xml:1.15 --- phpdoc/en/reference/misc/functions/eval.xml:1.14Wed May 24 10:47:16 2006 +++ phpdoc/en/reference/misc/functions/eval.xml Wed May 24 15:18:38 2006 @@ -1,5 +1,5 @@ - + @@ -17,10 +17,8 @@ code_str as PHP code. Among other things, this can be useful for storing code in a database text field for later execution. code_str does not have to - start with or contain - PHP Opening tags. If you want your given string to be - evaluated like regular PHP code with opening tags you can prepend - code_str with a closing tag. + contain PHP Opening + tags. There are some factors to keep in mind when using @@ -28,7 +26,8 @@ be valid PHP code, including things like terminating statements with a semicolon so the parser doesn't die on the line after the eval, and properly escaping things in - code_str. + code_str. To mix HTML output and PHP code + you can use a closing PHP tag to leave PHP mode. Also remember that variables given values under
RE: [PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
> > Seriously ? I translate that and I'm really wondering the truth about > > that... Is it like > > > > $code_str = '?>'; > > That's what I was writing about. > > Or I'm just wrong and don't understand what you said ? It > > makes no sense > > for me to do that... The sense is you can do stuff like $code_str = '...'; And then prepend that string with '?>' when using eval: eval('?>'. $code_str); Where $code_str might as well be read from a database. > > Maybe it's good or just need a little rewording. I'll think of some rewording. I did not want to add a whole paragraph to the manual page as doing things like the above example was obvious to me but some people didn't realize that was possible. Olli signature.asc Description: Dies ist ein digital signierter Nachrichtenteil
Re: [PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
On 5/24/06, Ford, Mike <[EMAIL PROTECTED]> wrote: [snip] I agree, I think that addition is particularly impenetrable. However, what I *think* he's getting at is that it's possible to do things like: eval("?>Hello !"); This will definitely not work as you intended, you probably want single quotes there. -Hannes Not sure how to describe that, though without getting as wordy as this addition is cryptic! > Oliver Albers a écrit : > > simpWed May 24 10:47:16 2006 UTC > > > > Modified files: > > /phpdoc/en/reference/misc/functions eval.xml > > Log: > > Added some words about how to mix HTML and PHP code within eval > > - later execution. > > + later execution. code_str does > not have to > > + start with or contain linkend="language.basic-syntax.phpmode"> > > + PHP Opening tags. If you want your given string to be > > + evaluated like regular PHP code with opening tags you > can prepend > > + code_str with a closing tag. > > Cheers! Mike Mike Ford, Electronic Information Services Adviser, Learning Support Services, JG125, The Library, James Graham Building, Headingley Campus, Beckett Park, LEEDS, LS6 3QS, United Kingdom Tel: +44 113 283 2600 extn 4730Fax: +44 113 283 3211 To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm
RE: [PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
> -Original Message- > From: Jean-Sébastien Goupil [mailto:[EMAIL PROTECTED] > Sent: 24 May 2006 13:52 > > Hi, > > Seriously ? I translate that and I'm really wondering the truth about > that... Is it like > > $code_str = '?>'; > > Or I'm just wrong and don't understand what you said ? It > makes no sense > for me to do that... > Maybe it's good or just need a little rewording. I agree, I think that addition is particularly impenetrable. However, what I *think* he's getting at is that it's possible to do things like: eval("?>Hello !"); Not sure how to describe that, though without getting as wordy as this addition is cryptic! > Oliver Albers a écrit : > > simpWed May 24 10:47:16 2006 UTC > > > > Modified files: > > /phpdoc/en/reference/misc/functions eval.xml > > Log: > > Added some words about how to mix HTML and PHP code within eval > > - later execution. > > + later execution. code_str does > not have to > > + start with or contain linkend="language.basic-syntax.phpmode"> > > + PHP Opening tags. If you want your given string to be > > + evaluated like regular PHP code with opening tags you > can prepend > > + code_str with a closing tag. > > Cheers! Mike Mike Ford, Electronic Information Services Adviser, Learning Support Services, JG125, The Library, James Graham Building, Headingley Campus, Beckett Park, LEEDS, LS6 3QS, United Kingdom Tel: +44 113 283 2600 extn 4730Fax: +44 113 283 3211 To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm
Re: [PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
Hi, Seriously ? I translate that and I'm really wondering the truth about that... Is it like $code_str = '?>'; Or I'm just wrong and don't understand what you said ? It makes no sense for me to do that... Maybe it's good or just need a little rewording. "you can prepend code_str *to* a closing tag" ? Jean-Sébastien Goupil [EMAIL PROTECTED] http://other.lookstrike.com Oliver Albers a écrit : simpWed May 24 10:47:16 2006 UTC Modified files: /phpdoc/en/reference/misc/functions eval.xml Log: Added some words about how to mix HTML and PHP code within eval http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/misc/functions/eval.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc/en/reference/misc/functions/eval.xml diff -u phpdoc/en/reference/misc/functions/eval.xml:1.13 phpdoc/en/reference/misc/functions/eval.xml:1.14 --- phpdoc/en/reference/misc/functions/eval.xml:1.13Fri Mar 11 16:11:51 2005 +++ phpdoc/en/reference/misc/functions/eval.xml Wed May 24 10:47:16 2006 @@ -1,5 +1,5 @@ - + @@ -16,7 +16,11 @@ eval evaluates the string given in code_str as PHP code. Among other things, this can be useful for storing code in a database text field for - later execution. + later execution. code_str does not have to + start with or contain + PHP Opening tags. If you want your given string to be + evaluated like regular PHP code with opening tags you can prepend + code_str with a closing tag. There are some factors to keep in mind when using
[PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
simpWed May 24 10:47:16 2006 UTC Modified files: /phpdoc/en/reference/misc/functions eval.xml Log: Added some words about how to mix HTML and PHP code within eval http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/misc/functions/eval.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc/en/reference/misc/functions/eval.xml diff -u phpdoc/en/reference/misc/functions/eval.xml:1.13 phpdoc/en/reference/misc/functions/eval.xml:1.14 --- phpdoc/en/reference/misc/functions/eval.xml:1.13Fri Mar 11 16:11:51 2005 +++ phpdoc/en/reference/misc/functions/eval.xml Wed May 24 10:47:16 2006 @@ -1,5 +1,5 @@ - + @@ -16,7 +16,11 @@ eval evaluates the string given in code_str as PHP code. Among other things, this can be useful for storing code in a database text field for - later execution. + later execution. code_str does not have to + start with or contain + PHP Opening tags. If you want your given string to be + evaluated like regular PHP code with opening tags you can prepend + code_str with a closing tag. There are some factors to keep in mind when using
[PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
vrana Mon Jan 24 08:15:40 2005 EDT Modified files: /phpdoc/en/reference/misc/functions eval.xml Log: Processing of fatal error (bug #31542) http://cvs.php.net/diff.php/phpdoc/en/reference/misc/functions/eval.xml?r1=1.11&r2=1.12&ty=u Index: phpdoc/en/reference/misc/functions/eval.xml diff -u phpdoc/en/reference/misc/functions/eval.xml:1.11 phpdoc/en/reference/misc/functions/eval.xml:1.12 --- phpdoc/en/reference/misc/functions/eval.xml:1.11Fri Jan 14 11:02:20 2005 +++ phpdoc/en/reference/misc/functions/eval.xml Mon Jan 24 08:15:40 2005 @@ -1,5 +1,5 @@ - + @@ -38,6 +38,7 @@ code, in which case the value passed to return is returned. In case of a parse error in the evaluated code, eval returns &false;. + In case of a fatal error in the evaluated code, the whole script exits. In PHP 3, eval does not return a value.
[PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
vrana Fri Jan 14 11:02:21 2005 EDT Modified files: /phpdoc/en/reference/misc/functions eval.xml Log: parse error returns false, fatal error exits (bug #31542) http://cvs.php.net/diff.php/phpdoc/en/reference/misc/functions/eval.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc/en/reference/misc/functions/eval.xml diff -u phpdoc/en/reference/misc/functions/eval.xml:1.10 phpdoc/en/reference/misc/functions/eval.xml:1.11 --- phpdoc/en/reference/misc/functions/eval.xml:1.10Sun Aug 8 13:28:32 2004 +++ phpdoc/en/reference/misc/functions/eval.xml Fri Jan 14 11:02:20 2005 @@ -1,5 +1,5 @@ - + @@ -36,7 +36,7 @@ the string immediately. As of PHP 4, eval returns &null; unless return is called in the evaluated code, in which case the value passed to return is - returned. In case of a fatal error in the evaluated code, + returned. In case of a parse error in the evaluated code, eval returns &false;. In PHP 3, eval does not return a value.
[PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
seanSun Aug 8 13:28:32 2004 EDT Modified files: /phpdoc/en/reference/misc/functions eval.xml Log: grammar http://cvs.php.net/diff.php/phpdoc/en/reference/misc/functions/eval.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc/en/reference/misc/functions/eval.xml diff -u phpdoc/en/reference/misc/functions/eval.xml:1.9 phpdoc/en/reference/misc/functions/eval.xml:1.10 --- phpdoc/en/reference/misc/functions/eval.xml:1.9 Sat Aug 7 06:12:15 2004 +++ phpdoc/en/reference/misc/functions/eval.xml Sun Aug 8 13:28:32 2004 @@ -1,5 +1,5 @@ - + @@ -36,7 +36,7 @@ the string immediately. As of PHP 4, eval returns &null; unless return is called in the evaluated code, in which case the value passed to return is - returned. In case of fatal error in evaluated code, + returned. In case of a fatal error in the evaluated code, eval returns &false;. In PHP 3, eval does not return a value.
[PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
vrana Sat Aug 7 06:12:15 2004 EDT Modified files: /phpdoc/en/reference/misc/functions eval.xml Log: Return value with fatal error (bug #24135) http://cvs.php.net/diff.php/phpdoc/en/reference/misc/functions/eval.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc/en/reference/misc/functions/eval.xml diff -u phpdoc/en/reference/misc/functions/eval.xml:1.8 phpdoc/en/reference/misc/functions/eval.xml:1.9 --- phpdoc/en/reference/misc/functions/eval.xml:1.8 Thu Jul 22 20:18:22 2004 +++ phpdoc/en/reference/misc/functions/eval.xml Sat Aug 7 06:12:15 2004 @@ -1,5 +1,5 @@ - + @@ -36,7 +36,9 @@ the string immediately. As of PHP 4, eval returns &null; unless return is called in the evaluated code, in which case the value passed to return is - returned. In PHP 3, eval does not return a value. + returned. In case of fatal error in evaluated code, + eval returns &false;. + In PHP 3, eval does not return a value.
[PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
nlopess Tue May 18 10:35:55 2004 EDT Modified files: /phpdoc/en/reference/misc/functions eval.xml Log: see also http://cvs.php.net/diff.php/phpdoc/en/reference/misc/functions/eval.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc/en/reference/misc/functions/eval.xml diff -u phpdoc/en/reference/misc/functions/eval.xml:1.6 phpdoc/en/reference/misc/functions/eval.xml:1.7 --- phpdoc/en/reference/misc/functions/eval.xml:1.6 Mon Dec 15 11:52:03 2003 +++ phpdoc/en/reference/misc/functions/eval.xml Tue May 18 10:35:55 2004 @@ -1,5 +1,5 @@ - + @@ -67,6 +67,9 @@ &tip.ob-capture; + + See also call_user_func. +
Re: [PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
On Wed, 2003-06-11 at 03:54, Damien Seguy wrote: > Le lundi, 9 jun 2003, à 15:31 America/Montreal, Philip Olson a écrit : > > > > > return is how it's done, just like > > include, print, etc. > Yet, return is not a function, unlike include or print. > > could get a link to the anchor in the doc to return. > same would apply to continue and break, while, for. > > That is more consistent. > What do you think? > > Damien Seguy. I don't think that is the perfect fit for return, but means a literal representation of something, and return doesn't really represent something else; it actually does something. So I think that hits a bit closer to the mark. Just my $0.02 CDN. -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http://www.hybrid17.com http://www.themainonmain.com - Boycott Starbucks! http://www.haidabuckscafe.com - -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
Le lundi, 9 jun 2003, à 15:31 America/Montreal, Philip Olson a écrit : return is how it's done, just like include, print, etc. Yet, return is not a function, unlike include or print. could get a link to the anchor in the doc to return. same would apply to continue and break, while, for. That is more consistent. What do you think? Damien Seguy. -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
return is how it's done, just like include, print, etc. Have a look at php.net/eval and notice it links to the return docs. In conclusion: this should be reverted ;) Ths simple proof is that /manual/en/function.return.php is the doc page for return. return links to that. Goba -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
return is how it's done, just like include, print, etc. Have a look at php.net/eval and notice it links to the return docs. In conclusion: this should be reverted ;) Regards, Philip On Mon, 9 Jun 2003, Damien Seguy wrote: > dams Mon Jun 9 15:18:08 2003 EDT > > Modified files: > /phpdoc/en/reference/misc/functions eval.xml > Log: > return is not a function > > Index: phpdoc/en/reference/misc/functions/eval.xml > diff -u phpdoc/en/reference/misc/functions/eval.xml:1.3 > phpdoc/en/reference/misc/functions/eval.xml:1.4 > --- phpdoc/en/reference/misc/functions/eval.xml:1.3 Sat Sep 28 15:05:35 2002 > +++ phpdoc/en/reference/misc/functions/eval.xml Mon Jun 9 15:18:08 2003 > @@ -1,5 +1,5 @@ > > - > + > > > > @@ -34,8 +34,8 @@ > > A return statement will terminate the evaluation of > the string immediately. In PHP 4, eval returns > - &null; unless return is called in the evaluated > - code, in which case the value passed to return is > + &null; unless return is called in the evaluated > + code, in which case the value passed to return is > returned. In PHP 3, eval does not return a value. > > > > > > -- > PHP Documentation Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
damsMon Jun 9 15:18:08 2003 EDT Modified files: /phpdoc/en/reference/misc/functions eval.xml Log: return is not a function Index: phpdoc/en/reference/misc/functions/eval.xml diff -u phpdoc/en/reference/misc/functions/eval.xml:1.3 phpdoc/en/reference/misc/functions/eval.xml:1.4 --- phpdoc/en/reference/misc/functions/eval.xml:1.3 Sat Sep 28 15:05:35 2002 +++ phpdoc/en/reference/misc/functions/eval.xml Mon Jun 9 15:18:08 2003 @@ -1,5 +1,5 @@ - + @@ -34,8 +34,8 @@ A return statement will terminate the evaluation of the string immediately. In PHP 4, eval returns - &null; unless return is called in the evaluated - code, in which case the value passed to return is + &null; unless return is called in the evaluated + code, in which case the value passed to return is returned. In PHP 3, eval does not return a value. -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /en/reference/misc/functions eval.xml
hholzgraSat Sep 28 15:05:35 2002 EDT Modified files: /phpdoc/en/reference/misc/functions eval.xml Log: fix for Bug #15904 Index: phpdoc/en/reference/misc/functions/eval.xml diff -u phpdoc/en/reference/misc/functions/eval.xml:1.2 phpdoc/en/reference/misc/functions/eval.xml:1.3 --- phpdoc/en/reference/misc/functions/eval.xml:1.2 Wed Apr 17 02:40:42 2002 +++ phpdoc/en/reference/misc/functions/eval.xml Sat Sep 28 15:05:35 2002 @@ -1,5 +1,5 @@ - + @@ -34,7 +34,7 @@ A return statement will terminate the evaluation of the string immediately. In PHP 4, eval returns - &false; unless return is called in the evaluated + &null; unless return is called in the evaluated code, in which case the value passed to return is returned. In PHP 3, eval does not return a value. -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php