Re: [PHP] Handling exit in eval

2011-03-14 Thread DELiTH
Richard Quadling wrote: > On 14 March 2011 12:14, DELiTH wrote: >> Richard Quadling wrote: >> >>> 2011/3/14 Richard Quadling : >>> >>> And where is my UNDO button. >>> >>> Essentially, having exit in the eval code is no different to having it >>> in non-eval code. eval isn't a separate entity whi

Re: [PHP] Handling exit in eval

2011-03-14 Thread Richard Quadling
On 14 March 2011 12:14, DELiTH wrote: > Richard Quadling wrote: > >> 2011/3/14 Richard Quadling : >> >> And where is my UNDO button. >> >> Essentially, having exit in the eval code is no different to having it >> in non-eval code. eval isn't a separate entity which can be >> terminated. >> >> So,

Re: [PHP] Handling exit in eval

2011-03-14 Thread DELiTH
Richard Quadling wrote: > 2011/3/14 Richard Quadling : > > And where is my UNDO button. > > Essentially, having exit in the eval code is no different to having it > in non-eval code. eval isn't a separate entity which can be > terminated. > > So, code the eval code differently. > > If you can prov

Re: [PHP] Handling exit in eval

2011-03-14 Thread Richard Quadling
2011/3/14 Richard Quadling : And where is my UNDO button. Essentially, having exit in the eval code is no different to having it in non-eval code. eval isn't a separate entity which can be terminated. So, code the eval code differently. If you can provide some examples, maybe we can come up wit

Re: [PHP] Handling exit in eval

2011-03-14 Thread Richard Quadling
2011/3/14 Thomas Björk : > Is there any way to emulate an exit in eval without exiting the calling > script. > > $s = 'echo "Shows"; exit; echo "Doesn\'t show"; '; > eval($s); > echo "Never comes here"; > ?> > > > I would like to do something like this: > $s = 'echo "Shows"; exit; echo "Doesn\'t