mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00

* Zend/*: fix a bunch of typos * Zend/tests/try/try_catch_finally_005.phpt: update string length
12 lines
137 B
PHP
12 lines
137 B
PHP
--TEST--
|
|
Empty enum with from/tryFrom doesn't segfault
|
|
--FILE--
|
|
<?php
|
|
|
|
enum A: string {}
|
|
|
|
var_dump(A::tryFrom('B'));
|
|
|
|
?>
|
|
--EXPECT--
|
|
NULL
|