--TEST-- openssl_x509_export() tests --SKIPIF-- --FILE-- getMessage() . "\n"; } if (PHP_EOL !== "\n") { $a = str_replace(PHP_EOL, "\n", $a); } var_dump(strcmp($output, $a)); var_dump(strcmp($output, $output2)); var_dump(strcmp($output, $output4)); var_dump($output3); var_dump($output5); ?> --EXPECTF-- bool(true) bool(true) Warning: openssl_x509_export(): X.509 Certificate cannot be retrieved in %s on line %d bool(false) bool(true) openssl_x509_export(): Argument #1 ($certificate) must be of type OpenSSLCertificate|string, array given int(0) int(0) int(%d) NULL NULL