Skip to content

Commit c4378be

Browse files
committed
simplexml test fix
1 parent 3683c4b commit c4378be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/simplexml/tests/gh12929.phpt

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ try {
1010
file_get_contents($scheme . "://x");
1111
} catch (Error $e) {
1212
echo $e->getMessage(), "\n";
13-
echo $e->getPrevious()->getMessage(), "\n";
13+
var_dump($e->getPrevious());
1414
}
1515

1616
$scheme = "foo2";
@@ -19,11 +19,11 @@ try {
1919
file_get_contents($scheme . "://x");
2020
} catch (Error $e) {
2121
echo $e->getMessage(), "\n";
22-
echo $e->getPrevious()->getMessage(), "\n";
22+
var_dump($e->getPrevious());
2323
}
2424
?>
2525
--EXPECT--
26-
It's not possible to assign a complex type to properties, resource given
2726
SimpleXMLElement is not properly initialized
28-
It's not possible to assign a complex type to properties, resource given
27+
NULL
2928
SimpleXMLElement is not properly initialized
29+
NULL

0 commit comments

Comments
 (0)