|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-04-29 23:14 UTC] Antoniocs at gmail dot com
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. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 23 03:00:01 2025 UTC |
<html> <head> </head> <body> Hey!! Tudo bem??????<br> <br> OLAS<br> Notice: Use of undefined constant TESTE - assumed 'TESTE' in /tmp/eval_test/page_parser.php(27) : eval()'d code on line 3 TESTE iojdsfoijdoidsd<br><br>1177951395 Notice: Undefined variable: BLA in /tmp/eval_test/page_parser.php(27) : eval()'d code on line 12 Hello hello </body> </html>