mirror of
https://github.com/php/php-src.git
synced 2026-04-21 15:08:16 +02:00
e5aae35855
Easier to handle them than to ensure they can't happen in the first place.
13 lines
344 B
PHP
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
|