From:             Antoniocs at gmail dot com
Operating system: Windows XP sp2
PHP version:      5.2.1
PHP Bug Type:     Output Control
Bug description:  Eval failing on calls to class methods

Description:
------------
I am trying to use output control functions to replace text with processed
pages. So I am using eval on a callback function

Reproduce code:
---------------
//page_parser.php file (small class to parse pages and replace with
something set by me)
URL: http://privatepaste.com/9818gOaFnI

//teste_parser.php file (file that calls the class to use it to replace a
string that I set with the contents of a php file)
URL: http://privatepaste.com/32658Bx95B

//teste_parser_2.php file (file that contains the php code to be processed
by eval. Later this will replace the string set by me
URL: http://privatepaste.com/0c1Ev1CTKA

Expected result:
----------------
The teste() method from the class bla to show it's echo (which is a simple
Hello)

Actual result:
--------------
Nothing appears. The page is blank. All because I call a class method.

-- 
Edit bug report at http://bugs.php.net/?id=41232&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41232&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41232&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41232&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=41232&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=41232&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=41232&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=41232&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=41232&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=41232&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=41232&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=41232&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=41232&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=41232&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41232&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=41232&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=41232&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=41232&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41232&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=41232&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=41232&r=mysqlcfg

Reply via email to