#42950 [Opn->Bgs]: Read-only error wrongly pointing to main()

From: Date: Mon, 12 Nov 2007 10:24:26 +0000
Subject: #42950 [Opn->Bgs]: Read-only error wrongly pointing to main()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-119523@lists.php.net to get a copy of this message
ID: 42950 Updated by: tony2001@php.net Reported By: root at mantoru dot de -Status: Open +Status: Bogus Bug Type: XML Reader Operating System: * PHP Version: 5.2.4 New Comment: There is no active function at the moment, so it refers to main(). This is expected. Previous Comments: ------------------------------------------------------------------------ [2007-10-12 14:34:16] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42950&edit=1

« previous php.bugs (#119523) next »