ID:               45782
 Updated by:       [EMAIL PROTECTED]
 Reported By:      tristen at netoverdrive dot com dot au
-Status:           Open
+Status:           Bogus
 Bug Type:         Feature/Change Request
 Operating System: all
 PHP Version:      5.2.6
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

There's eval() but use it with care


Previous Comments:
------------------------------------------------------------------------

[2008-08-11 05:40:17] tristen at netoverdrive dot com dot au

Description:
------------
It would be nice to be able to include code from a variable, ie:

$code = array();

$code[] = "$a = 123";
$code[] = "echo $a";

require_code($code);

Code generation could then work without first having to output the code
to a temporary file and then include it.

I know it would be easy enough to write a function to do this but hey:
it would make a nice addition to standard PHP.

Reproduce code:
---------------
n/a

Expected result:
----------------
n/a

Actual result:
--------------
n/a


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45782&edit=1

Reply via email to