"Fatal Error Unable to reattach to base address" while running in cmd and PowerShell
mjordan opened this issue · 1 comments
When running background commands (here is my code) in Windows PowerShell or cmd shell, the command fails and the error Fatal Error Unable to reattach to base address
is printed to STDOUT. This doesn't happen when running the same code under Git Bash, where the commands execute as intended. A typical command that I am running is "php m:\mik_mark\extras\scripts\postwritehooks\validate_mods.php", with some arguments to the validate_mods.php script added at runtime.
A quick google for that error brings back some issues surrounding Zend Opcache (like this one).
Has anyone seen this before or have any suggestions as to how work around it? I'm on Windows 7 Enterprise SP1 (64 bit). php -v produces:
PHP 5.6.2 (cli) (built: Oct 15 2014 14:55:48)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
I've found a fix, or at least a way of avoiding the issue: commenting out opcache.enable_cli=1
in php.ini.