ID:               39681
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mail at jorgenhorstink dot nl
-Status:           Open
+Status:           Bogus
 Bug Type:         Class/Object related
 Operating System: FreeBSD
 PHP Version:      4.4.4
 New Comment:

Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

Can't reproduce this in 4.4.7 or any version after that.


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

[2007-11-23 00:58:29] [EMAIL PROTECTED]

In PHP 5.3:
Fatal error: Using $this when not in object context

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

[2006-11-29 11:55:10] mail at jorgenhorstink dot nl

Description:
------------
The code below shows the issue.

Reproduce code:
---------------
<?php

$this->bug = 'PHP Should not allow assignment of $this properties when
used outside a class';


class A
{
  function B() {
  }
}

A::B();

?>

Expected result:
----------------
The engine should throw an error because setting a property on the
$this object is senseless.

Actual result:
--------------
Warning: Problem with method call - please report this bug in xxx.php
on line xx


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


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

Reply via email to