ID:               31822
 Updated by:       [EMAIL PROTECTED]
 Reported By:      clewis at myfonts dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Zend Engine 2 problem
 Operating System: RedHat Enterprise 3
 PHP Version:      5.0.3
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

In your example there is no function in your eval'd code.


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

[2005-02-03 00:35:22] clewis at myfonts dot com

Description:
------------
The __FUNCTION__ magic constant returns nothing when used in eval()'d
code.  __FILE__ and __LINE__ work as expected.

Reproduce code:
---------------
<?php 

function whatFunctionAmI()
{
        eval("print 'the function is: ' . __FUNCTION__;");
}

whatFunctionAmI();

?>

Expected result:
----------------
the function is: whatFunctionAmI

Actual result:
--------------
the function is: 


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


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

Reply via email to