File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212}
1313?>
1414--EXPECTF--
15- Fatal error: The (unset) cast is no longer supported in %s on line %d
15+ Fatal error: The (unset) cast is no longer supported in %s on line %d
Original file line number Diff line number Diff line change @@ -814,11 +814,6 @@ static zend_result ZEND_FASTCALL zend_ast_evaluate_inner(
814814 case IS_OBJECT :
815815 zend_cast_zval_to_object (result , & op1 , IS_VAR );
816816 break ;
817- case IS_NULL :
818- zend_throw_error (NULL ,
819- "Invalid cast in constant expression" );
820- ret = FAILURE ;
821- break ;
822817 EMPTY_SWITCH_DEFAULT_CASE ();
823818 }
824819 zval_ptr_dtor_nogc (& op1 );
Original file line number Diff line number Diff line change 1+ --TEST--
2+ finfo_open() works with Unicode magic file path (bug #71527)
3+ --EXTENSIONS--
4+ fileinfo
5+ --INI--
6+ display_errors=1
7+ display_startup_errors=1
8+ error_reporting=E_ALL
9+ --FILE--
10+ <?php
11+ $ magic = __DIR__ . DIRECTORY_SEPARATOR . "bug71527私はガラスを食べられます.magic " ;
12+ $ finfo = finfo_open (FILEINFO_NONE , $ magic );
13+ var_dump ($ finfo instanceof finfo);
14+ ?>
15+ --EXPECT--
16+ bool(true)
You can’t perform that action at this time.
0 commit comments