Skip to content

Commit

Permalink
MFH: Fix #44511 (Ensure no exception was already thrown by php_stream…
Browse files Browse the repository at this point in the history
…_opendir)
  • Loading branch information
colder committed Apr 9, 2008
1 parent e3040a0 commit 54b70b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/spl/spl_directory.c
Expand Up @@ -215,7 +215,7 @@ static void spl_filesystem_dir_open(spl_filesystem_object* intern, char *path TS
}
intern->u.dir.index = 0;

if (intern->u.dir.dirp == NULL) {
if (EG(exception) || intern->u.dir.dirp == NULL) {
/* throw exception: should've been already happened */
intern->u.dir.entry.d_name[0] = '\0';
} else {
Expand Down

0 comments on commit 54b70b6

Please sign in to comment.