ID:               33361
 User updated by:  halmai at nexum dot hu
 Reported By:      halmai at nexum dot hu
 Status:           Wont fix
 Bug Type:         Feature/Change Request
 Operating System: Linux
 PHP Version:      4.3.10
 New Comment:

OK, I understand that it will not be changed in PHP4.

If BC stands for backword compatibility, then I do not agree. 

I think this "feature" was not used by too many users but many of them
were surprised by this behavior (see earlier bugreports). That's why it
should be changed, I think. Maybe in PHP6?

If a feature is senseless and embarrasses some users and any others are
not using this feature at all then it could be changed, I think.


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

[2005-06-16 15:14:41] [EMAIL PROTECTED]

As I have already said: it won't be changed in PHP4 and it won't be
changed in PHP5 because of BC.

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

[2005-06-16 14:58:07] halmai at nexum dot hu

In php5 when I use the keyword static then the value of the variable
$this will always be null in this function. It's the correct behaviour
because a static function can be called only without any instance. 

But if I want to call a function sometimes as an instance function and
sometimes without any instances, then I have to omit the keyword
static. But in this case I get the silly behaviour of php4, where I can
not decide inside a function if it was called in static context or not.


That's why I think this behaviour should be changed.

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

[2005-06-16 14:39:23] [EMAIL PROTECTED]

It works fine if you declare the method as static.
If you don't do it - it works in the same way as in PHP4 just because
of backward compatibility.

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

[2005-06-16 14:33:52] halmai at nexum dot hu

No, it is not perfect in version 5 neither. 

It works the same way in PHP 5.0.4 as in PHP 4.3.10.

So, should I re-report it or can You assign this report to a newer PHP
version? If You can, then please do it. Thanks in advance.

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

[2005-06-16 14:08:06] [EMAIL PROTECTED]

>Should I re-report this for version 5.
Why? It works perfectly there.

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/33361

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

Reply via email to