You are here: Re: [PHP] un-eval() « PHP « IT news, forums, messages
Re: [PHP] un-eval()

Posted by Robert Cummings on 10/31/05 04:44

On Sun, 2005-10-30 at 21:15, Chris Shiflett wrote:
> John Taylor-Johnston wrote:
> > Does eval() have a synonym?
>
> I don't usually like to answer a question with a question, but consider
> this:
>
> eval($code);
>
> This produces the following output:
>
> red
>
> Given this, what was the value of $code?

The infinite set of source code permutations that can output the word
'red' as a sole output regardless of whatever other logic may occur
within the content of $code. I use 'can output' because the particular
evaluation may not always output 'red' since the above example may be an
isolated case that occurs once every trillion runs or so and we just
happened to hit it :B

Cheers,
Rob.
--
..------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация