|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64819 MsgBox on error "Class MySimpleXMLelement could not implement interface Iterat"
Submitted: 2013-05-11 20:58 UTC Modified: 2013-05-18 17:27 UTC
From: hanskrentel at yahoo dot de Assigned: ab (profile)
Status: No Feedback Package: win32std (PECL)
PHP Version: 5.4.15 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
47 - 44 = ?
Subscribe to this entry?

 [2013-05-11 20:58 UTC] hanskrentel at yahoo dot de
Extending form SimpleXMLElement and implementing Iterator does not work. I can 
understand that (albeit it is a little pity). However this report is about getting 
a message box for a fatal error when running in CLI / Phpstorm.

I normally reported this kind of problems here in the bugtracker because the error 
shouldn't be given as a windows msgbox.

Test script:
class MySimpleXMLelement extends SimpleXMLElement implements Iterator

    public function current() {
        return current($this);

    public function next() {

    public function key() {
        return key($this);

    public function valid() {
        return each($this);

    public function rewind() {

Actual result:
Getting a standard Windows MsgBox with the following text:

"Class MySimpleXMLelement could not implement interface Iterator"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-05-11 21:02 UTC] hanskrentel at yahoo dot de
I reported this against a wrong package, was actually looking for "standard 
windows" category or something. Sorry for the fuzz.
 [2013-05-12 13:42 UTC]
-Status: Open +Status: Feedback
 [2013-05-12 13:42 UTC]
Not reproducible for me with neither 5.4 nor 5.5. I just get on console

Fatal error: Class MySimpleXMLelement could not implement interface Iterator in 
Unknown on line 0

when running your test script.

Could you please provide more details about your php.ini and extensions loaded?
 [2013-05-18 17:27 UTC]
-Status: Feedback +Status: No Feedback -Assigned To: +Assigned To: ab
 [2013-05-18 17:27 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.

 [2013-10-03 12:27 UTC] hanskrentel at yahoo dot de
You should be able to reproduce this with the following two php.ini settings:

display_startup_errors = On
log_errors = On

Both need to be set to on as I have found out, otherwise the Msgbox is not shown.

You should be able to reproduce from command-line on windows with:

php -n -d display_startup_errors=1 -d log_errors=1 -r "class M extends SimpleXMLElement implements Iterator {}"
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 22 21:01:29 2024 UTC