Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Fatal Error Unable to reattach to base address" while running in cmd and PowerShell #15

Open
mjordan opened this issue Jan 14, 2016 · 1 comment

Comments

@mjordan
Copy link

mjordan commented Jan 14, 2016

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
@mjordan
Copy link
Author

mjordan commented Jan 15, 2016

I've found a fix, or at least a way of avoiding the issue: commenting out opcache.enable_cli=1 in php.ini.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant