1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 15:08:16 +02:00
Files
archived-php-src/ext/opcache/tests/opt/sccp_exception.phpt
T
Nikita Popov e5aae35855 Handle exceptions during SCCP function evaluation
Easier to handle them than to ensure they can't happen in the
first place.
2020-11-27 17:00:12 +01:00

13 lines
344 B
PHP

--TEST--
Exception thrown during SCCP evaluation
--FILE--
<?php
var_dump(version_compare('1.2', '2.1', '??'));
?>
--EXPECTF--
Fatal error: Uncaught ValueError: version_compare(): Argument #3 ($operator) must be a valid comparison operator in %s:%d
Stack trace:
#0 %s(%d): version_compare('1.2', '2.1', '??')
#1 {main}
thrown in %s on line %d