xp-framework / core

The XP Framework is an all-purpose, object oriented PHP framework.
Other
19 stars 6 forks source link

XDebug segmentation faults #250

Closed thekid closed 3 years ago

thekid commented 3 years ago
$ XP_RT=7.4x xp test src/test/config/unittest/core.ini
# ...
Segmentation fault

$ XP_RT=7.4x xp test src/test/config/unittest/util.ini
# ...
Segmentation fault
thekid commented 3 years ago

Traced core.ini failure down to the following:

$ XP_RT=7.4x xp -w 'Closure::fromCallable("strlen")("Test")'
Segmentation fault

Also occurs for other builtin functions, e.g. strpos.

thekid commented 3 years ago

For util.ini, the same XDebug bug causes the problem, resulting from this call:

$ XP_RT=7.4x xp -w 'cast("strtolower", "function(string): string")("HI")'
Segmentation fault
thekid commented 3 years ago

This was not the cause of PHP 8.0 and PHP 8.1 failing on Windows in GitHub actions, unfortunately.