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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 01:01:28 2024 UTC