php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33065 overloading
Submitted: 2005-05-19 16:04 UTC Modified: 2005-05-21 04:11 UTC
From: cita at nextradsl dot cz Assigned:
Status: Not a bug Package: Class/Object related
PHP Version: 5.0.4 OS: independent
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cita at nextradsl dot cz
New email:
PHP Version: OS:

 

 [2005-05-19 16:04 UTC] cita at nextradsl dot cz
Description:
------------
overloading of overloaded properties is returning fatal error.



Reproduce code:
---------------
# this produce fatal error


$this->Button->Text = "text"; # __get(), __set()
# Fatal error: Cannot access undefined property for object with overloaded property access ..

# but this is ok : )? :

$button = $this->Button; # __get()
$button->Text = "text"; # __set()


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-19 16:05 UTC] tony2001@php.net
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.


 [2005-05-19 16:11 UTC] cita at nextradsl dot cz
I tested it at PHP 5.0.4
 [2005-05-19 16:11 UTC] cita at nextradsl dot cz
I tested it at PHP 5.0.4, problem is same
 [2005-05-19 23:32 UTC] cita at nextradsl dot cz
same problem is still there!
 [2005-05-19 23:41 UTC] tony2001@php.net
Please provide a short but complete reproduce script then.
 [2005-05-20 00:38 UTC] cita at nextradsl dot cz
example code with comments is here:

http://citadesign.site.cz/9file/php-bug/bug.sphp

and sorry for my english
 [2005-05-20 08:54 UTC] alan_k@php.net
you need to provide a reproducable example, eg. so
#php -r your_example.php
runs and illustrates your problem.
 [2005-05-20 10:08 UTC] tony2001@php.net
Please provide a short but *COMPLETE* reproduce script that I can copy/paste and see the problem.
The code you provided doesn't output any errors or something else.

 [2005-05-20 20:26 UTC] cita at nextradsl dot cz
working example  is here:

http://cfw.php5.cz/bug/bug.sphp
 [2005-05-20 20:51 UTC] tony2001@php.net
Outputs "bar" and no error with latest CVS.
 [2005-05-20 20:57 UTC] tony2001@php.net
Oh.. I can even see "bar" && "foo" there, but still no error.
 [2005-05-20 21:18 UTC] cita at nextradsl dot cz
error is still here

i tested it on latest snapshot on windows 2000 profi on apache 1.3
 [2005-05-20 21:23 UTC] cita at nextradsl dot cz
ok, sorry latest stable 5.0 is produce error,
but latest 5.1 is worikng, but there i have problem with zend optimizer
 [2005-05-20 21:24 UTC] tony2001@php.net
Do you have Zend Optimizer enabled ?
 [2005-05-20 21:38 UTC] cita at nextradsl dot cz
sure, yes i have,  but latest version of optimizer don't support php version 5.1,  is version of optimizer for php 5.1 ?
 [2005-05-20 21:43 UTC] tony2001@php.net
Do not file bugs when you have Zend extensions (zend_extension=)
loaded. Examples are Zend Optimizer, Zend Debugger, Turck MM Cache,
APC, Xdebug and ionCube loader.  These extensions often modify engine
behavior which is not related to PHP itself.

Thank you for wasting my time.
 [2005-05-20 21:49 UTC] cita at nextradsl dot cz
sorry if you lost time with my problem, but i'm testing without optimizer, i using clear instalation of php and apache, but on application server i must use optimizer for better performace. that my last question is: Could i run some version of optimizer on php 5.1 ?
 [2005-05-21 04:11 UTC] alan_k@php.net
ask zend...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 29 10:01:29 2024 UTC