Bug #68312 [Com]: Windows Message Box "php.exe - No Disk"
| From: | grefix at gmail dot com | Date: | Wed, 28 Jan 2015 00:18:19 +0000 |
| Subject: | Bug #68312 [Com]: Windows Message Box "php.exe - No Disk" | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-190256@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68312&edit=1
ID: 68312
Comment by: grefix at gmail dot com
Reported by: hanskrentel at yahoo dot de
Summary: Windows Message Box "php.exe - No Disk"
Status: Suspended
Type: Bug
Package: cURL related
Operating System: Windows 8 64bit
PHP Version: 5.5.18
Block user comment: N
Private report: N
New Comment:
Happenend to have this same issue. It appears that the curl extension specifically wants to access
the drive with letter F:
Workaround is to remap the drive to use a different drive letter (as it will be used for removable
media this shouldn't generate other issues)
Previous Comments:
------------------------------------------------------------------------
[2015-01-21 18:27:45] adam at tornadowebhosting dot com
I'm experiencing the same issue. But it's not pointing to a flash drive, it's
pointing to a built in SD card slot, that's something I can't easily disconnect.
------------------------------------------------------------------------
[2014-11-04 17:33:25] ab@php.net
Ok, lets suspend it then. From how it looks it's not related to PHP itself anyway but to the
environment change. If you come to debugging this again, feel free to reopen this.
Thanks.
------------------------------------------------------------------------
[2014-10-28 17:43:59] hanskrentel at yahoo dot de
I did already check with procmon for the initial report but couldn't reveal anything
substantial. It's perhaps OK to have it documented for the moment. I can hotfix by disabling
curl on the fly and/or removing the USB stick from the computer.
If this gets too much on my nerves I'll probably look again.
This is rather esoteric.
------------------------------------------------------------------------
[2014-10-28 08:36:55] ab@php.net
Tcha, if the program from the stick changes some env, that would affect anything else, not just PHP.
procmon might reveal more on what files are claimed http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
.
Thanks.
------------------------------------------------------------------------
[2014-10-27 19:08:39] hanskrentel at yahoo dot de
Description:
------------
When running php.exe like
php --version
a Windows Message-Box (Win API MsgBox) pops up with title "php.exe - No Disk" the error
symbol (Circle, background filled in red, white X inside it) with the message "There is no disk
in the drive. Please insert a disk into drive F:." and a group of three buttons below (Cancel,
Retry and Continue).
If running php.exe like
php --help
The box does not appear.
This does only happen when the system has an USB-stick attached that fakes a drive to invoke a
driver then to unmount the drive again so you can't look there in. Somehow the drive is still
registered.
I don't know why php needs to access this drive anyway.
With
php -n --version
the message box does not appear. Disabling all extensions in php.ini turns out to not have the
message box.
Re-enabling extension after extension turns out that
extension=php_curl.dll
causes this (curl extension).
I suspect this is related to some default files (e.g. _curlrc) / environment variables.
Looking for file-system-activity with Process Monitor didn't made me spot anything more
specific.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68312&edit=1