diff options
Diffstat (limited to 'ext/openssl/tests/bug38261.phpt')
-rw-r--r-- | ext/openssl/tests/bug38261.phpt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/openssl/tests/bug38261.phpt b/ext/openssl/tests/bug38261.phpt index fa25d93d62..e6e345d5ea 100644 --- a/ext/openssl/tests/bug38261.phpt +++ b/ext/openssl/tests/bug38261.phpt @@ -19,7 +19,11 @@ var_dump(openssl_x509_parse($t)); var_dump(openssl_x509_parse(array())); var_dump(openssl_x509_parse()); var_dump(openssl_x509_parse($cert)); -var_dump(openssl_x509_parse(new stdClass)); +try { + var_dump(openssl_x509_parse(new stdClass)); +} catch (Error $e) { + echo $e->getMessage(), "\n"; +} ?> --EXPECTF-- @@ -30,5 +34,4 @@ bool(false) Warning: openssl_x509_parse() expects at least 1 parameter, 0 given in %sbug38261.php on line %d NULL bool(false) - -Recoverable fatal error: Object of class stdClass could not be converted to string in %sbug38261.php on line %d +Object of class stdClass could not be converted to string |