You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
glob() accepts an enum case as the pattern argument on VM and returns array() (no match) instead of TypeError like Zend. Operand validation must reject TYPE_ENUM_CASE / enum objects before calling VmFsGlob::glob().
Category
stdlibProblem
glob()accepts an enum case as the pattern argument on VM and returnsarray()(no match) instead ofTypeErrorlike Zend. Operand validation must rejectTYPE_ENUM_CASE/ enum objects before callingVmFsGlob::glob().php-src reference
ext/standard/dir.c—PHP_FUNCTION(glob),Z_PARAM_STRon patternZend/zend_API.h— typed parameter enforcementRepro (verified 2026-06-04)
TypeError: glob(): Argument #1 ($pattern) must be of type string, E givenbin/vm.phparray ()❌Scope (PHP-in-PHP)
ext/standard/glob_.php— use sharedzend_string_param/ enum guard (see #5673 chr pattern)lib/VM/BuiltinArgCheck.phporEnumCaseSupport::rejectObjectOperand()ext/standard/JitFsGlob.php— same TypeError before native__phpc_glob_vecphpc_fs_dir.cglob path)Done when
TypeErroron VM (message matches Zend shape)./script/ci-fast.sh --filter glob_enum_patterngreenRelated