#44820 [Opn]: overload() causes Cause
| From: | neel dot get at gmail dot com | Date: | Thu, 24 Apr 2008 16:33:33 +0000 |
| Subject: | #44820 [Opn]: overload() causes Cause | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-124481@lists.php.net to get a copy of this message | ||
ID: 44820
User updated by: neel dot get at gmail dot com
Reported By: neel dot get at gmail dot com
Status: Open
Bug Type: Scripting Engine problem
Operating System: CentOs
-PHP Version: 4.4.8
+PHP Version: 4.3.10
New Comment:
version Corrected
Previous Comments:
------------------------------------------------------------------------
[2008-04-24 16:22:37] neel dot get at gmail dot com
Description:
------------
running on PHP version 4.3.10
Server for Sourceforge.net Projects
This code Returns not output on Browser
Lynx says
Alert!: Unexpected network read error;connection aborted.
Alert!: Unable to access document.
If running the same script through PHP CLI Running version (4.3.9)
returns expected result on terminal
X-Powered-By: PHP/4.3.9
Content-Type: text/plain
called create ()
called enargise ()
Reproduce code:
---------------
<?php
header('Content-Type: text/plain');
class Life{
function __call ($method, $args, &$return){
$return = 'called ' . $method . ' (' . implode (',',
$args) . ')';
return true;
}
}
overload('Life');
$creation = new Life();
echo $creation->create()."\n";
echo $creation->enargise()."\n";
?>
Expected result:
----------------
called create ()
called enargise ()
Actual result:
--------------
NO output on Browser
Lynx reports
Alert!: Unexpected network read error;connection aborted.
Alert!: Unable to access document.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44820&edit=1