php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42950 Read-only error wrongly pointing to main()
Submitted: 2007-10-12 14:34 UTC Modified: 2007-11-12 10:24 UTC
From: root at mantoru dot de Assigned:
Status: Not a bug Package: XML Reader
PHP Version: 5.2.4 OS: *
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: root at mantoru dot de
New email:
PHP Version: OS:

 

 [2007-10-12 14:34 UTC] root at mantoru dot de
Description:
------------
The error that is issued trying to modify a read-only attribute of XMLReader points to main(). (Probably php_error_docref?)

(Given that read-only properties are not yet implemented, I assumed that it's an extension-specific bug.)

Reproduce code:
---------------
<?php
$reader = new XMLReader;
$reader->isEmptyElement = null;
?>

Expected result:
----------------
Warning: Cannot write to read-only property in %s on line %d

Actual result:
--------------
Warning: main() [function.main.html]: Cannot write to read-only property in %s on line %d

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-12 10:24 UTC] tony2001@php.net
There is no active function at the moment, so it refers to main().
This is expected.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 23:01:28 2024 UTC