note 44760 added to function.eval

From: Date: Sun, 15 Aug 2004 20:00:15 +0000
Subject: note 44760 added to function.eval
Groups: php.notes 
Request: Send a blank email to php-notes+get-74736@lists.php.net to get a copy of this message
Be careful when using eval() on heavy usage sites in PHP 4.0+ as it takes vastly longer to activate due to the limitations of the Zend engine. The Zend engine changes the PHP to a binary structure at the START of the file, and then parses it. Every time an eval is called, however, it has to reactivate the parsing procedure and convert the eval()'d code into usable binary format again. Basically, if you eval() code, it takes as long as calling a new php page with the same code inside. ---- Manual Page -- http://www.php.net/manual/en/function.eval.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44760 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44760&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44760&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#74736) next »