php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #45852 "Cannot access empty property" error is misleading
Submitted: 2008-08-18 14:49 UTC Modified: 2016-06-08 13:52 UTC
Votes:7
Avg. Score:3.1 ± 1.2
Reproduced:6 of 6 (100.0%)
Same Version:5 (83.3%)
Same OS:4 (66.7%)
From: peterbelm at gmail dot com Assigned: nikic (profile)
Status: Closed Package: *General Issues
PHP Version: 5.2.6 OS: Any
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: peterbelm at gmail dot com
New email:
PHP Version: OS:

 

 [2008-08-18 14:49 UTC] peterbelm at gmail dot com
Description:
------------
The error message given in Zend/zend_object_handlers.c:188 "Cannot access empty property" is misleading. The problem is not an empty property but rather an empty property name.

This line could be changed to:

zend_error(E_ERROR, "Cannot access property with empty name");

Or something similar.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-06-08 13:52 UTC] nikic@php.net
-Status: Open +Status: Closed -Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: nikic
 [2016-06-08 13:52 UTC] nikic@php.net
As this limitation is going away in 7.1, I'll mark this as "fixed" :)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Mar 12 11:01:32 2025 UTC