Skip to content

Commit 7e933c5

Browse files
committed
Merge branch 'PHP-5.6'
* PHP-5.6: Fixed #65213 - cannot cast SplFileInfo to boolean Conflicts: ext/spl/spl_directory.c
2 parents e04971c + 52b41f2 commit 7e933c5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

ext/spl/tests/bug65213.phpt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--TEST--
2+
Bug #65213 (cannot cast SplFileInfo to boolean)
3+
--FILE--
4+
<?php
5+
6+
$o = new SplFileInfo('.');
7+
var_dump((bool) $o);
8+
9+
?>
10+
===DONE===
11+
--EXPECT--
12+
bool(true)
13+
===DONE===

0 commit comments

Comments
 (0)