|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69863 __get method is not calling
Submitted: 2015-06-17 15:58 UTC Modified: 2018-08-19 17:00 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: tugrultopuz at gmail dot com Assigned: cmb (profile)
Status: Duplicate Package: SPL related
PHP Version: 5.4.42 OS:
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.
Block user comment
Status: Assign to:
Bug Type:
From: tugrultopuz at gmail dot com
New email:
PHP Version: OS:


 [2015-06-17 15:58 UTC] tugrultopuz at gmail dot com

Above links are pointed to bug. Looks like there is no fallback handler for BP_VAR_RW state and not triggering __get magic method. 

Test script:

Expected result:
PHP Notice:  Undefined index: foo in /srv/www/phptest/arrayobject.php on line 26
PHP Stack trace:
PHP   1. {main}() /srv/www/phptest/arrayobject.php:0
PHP Warning:  Creating default object from empty value in /srv/www/phptest/arrayobject.php on line 26
PHP Stack trace:
PHP   1. {main}() /srv/www/phptest/arrayobject.php:0

Actual result:
class OtherArrayObject#2 (1) {
  private $storage =>
  array(1) {
    'foo' =>
    class OtherArrayObject#3 (1) {
      private $storage =>
      array(1) {


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-08-19 17:00 UTC]
-Status: Open +Status: Duplicate -Assigned To: +Assigned To: cmb
 [2018-08-19 17:00 UTC]
Basically, this is a duplicate of bug #74058.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Mar 23 05:03:38 2023 UTC