aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim/src/var.rs
AgeCommit message (Collapse)Author
2026-06-26test: port 59 autoload/vcs/installer/util/command tests; fix output capturensfisis
Port autoload_generator (24), bitbucket (14), suggested_packages (11), git_driver (6), archive_manager (3), and a bump command test. Fix the ApplicationTester output-capture root cause (php://memory streams must be readable regardless of fopen mode). Implement posix_getuid/geteuid, the PCRE 'A' anchored modifier, php_strip_whitespace, stream_get_wrappers, is_callable scalars; fix preg_quote angle-bracket escaping and class-map parser regexes. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24refactor(php-shim): remove is_resource/is_resource_valuensfisis
2026-06-21feat(php-shim): implement serialize/var_export/to_array/get_debug_typensfisis
Implement var.rs shims: serialize() (scalars/arrays with canonical integer-key normalization), var_export()/var_export_str() (PHP-faithful indentation and quoting), to_array() ((array) cast semantics), get_debug_type() and is_iterable() for the scalar/array cases. Reflection-dependent helpers (is_a, is_callable, get_class, instance_of, etc.) and object variants remain TODO(phase-d) as they need runtime class information PhpMixed does not carry. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-21refactor(php-shim): split lib.rsnsfisis