ID:               34629
 Updated by:       [EMAIL PROTECTED]
 Reported By:      djmaze at cpgnuke dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: Linux
 PHP Version:      5.0.5
 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

This is the way the overload extension is meant to work in PHP 4. It is
not meant to be "forward compatible" and changing its behaviour now
would cause BC problems.


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

[2005-09-24 18:49:31] djmaze at cpgnuke dot com

Description:
------------
When using the PHP 4 "forward compatibility" function overload() you
can use function __get($n, $val)

But when you want to use such class in PHP 5 it throws an error.

Reproduce code:
---------------
<?php
error_reporting(E_ALL);
class Foo
{
    function __get($n, $val='')
}

if (function_exists('overload') && phpversion() < 5)
{
    overload('Foo');
}
?>

Expected result:
----------------
No errors

Actual result:
--------------
In PHP 5:
Fatal error: Method Foo::__get() must take exactly 1 argument

In PHP 4:
Works as expected


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


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

Reply via email to