# php_win.exe crashes when in a directory with spaces

- Thread: https://externals.io/message/13076
- Original archive: https://news-web.php.net/php.internals/13076
- Started by Rubem Pechansky on 2004-09-30T13:54:33+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #13076 — Rubem Pechansky — 2004-09-30T13:54:33+00:00

URL: https://externals.io/message/13076#13076

Hi folks,

When working on a new WinBinder demo, I found out that php_win.exe (for PHP 
4, from PHP-GTK) crashes when called from a folder with spaces. For example, 
c:\PHP\myapp\php_win.exe runs fine, but c:\Program Files\myapp\php_win.exe 
consistently crashes. This can be a problem for Windows users since the 
applications path typically has a space.

More specifically, php.exe (AppVer: 4.3.9.9) crashes php4ts.dll at offset 
000BB8E4 with code 0xC0000005 (EXCEPTION_ACCESS_VIOLATION). I'm using the 
files from php-gtk-1.0.1a-win32.zip.

Interestingly, php.exe always runs perfectly, even on a directory with 
spaces (although it opens a DOS box, of course). Also, PHP 5 does not have 
this problem -- but in this case I'm using the file php-win.exe and the 
others that come with it.

Does anybody knows how to find (or build) a version of php_win.exe that 
won't crash?

Many thanks in advance,

-------------------
Rubem Pechansky

WinBinder - The native Windows binding for PHP
http://winbinder.sourceforge.net/

Hypervisual - Advanced Design for IT
http://hypervisual.com/

---

## #13113 — Steph — 2004-10-02T08:46:41+00:00

URL: https://externals.io/message/13076#13113 · In reply to: #13076

Hi Rubem,

Please could you re-post your mail to either php-gtk-general@lists.php.net
or php-gtk-dev@lists.php.net?  This discussion does not belong on the core
PHP internals list.

- Steph

----- Original Message ----- 
From: "Rubem Pechansky" <pechansky@hypervisual.com>
To: <internals@lists.php.net>
Sent: Thursday, September 30, 2004 3:54 PM
Subject: [PHP-DEV] php_win.exe crashes when in a directory with spaces


> Hi folks,
>
> When working on a new WinBinder demo, I found out that php_win.exe (for
PHP
> 4, from PHP-GTK) crashes when called from a folder with spaces. For
example,
> c:\PHP\myapp\php_win.exe runs fine, but c:\Program Files\myapp\php_win.exe
> consistently crashes. This can be a problem for Windows users since the
> applications path typically has a space.
>
> More specifically, php.exe (AppVer: 4.3.9.9) crashes php4ts.dll at offset
> 000BB8E4 with code 0xC0000005 (EXCEPTION_ACCESS_VIOLATION). I'm using the
> files from php-gtk-1.0.1a-win32.zip.
>
> Interestingly, php.exe always runs perfectly, even on a directory with
> spaces (although it opens a DOS box, of course). Also, PHP 5 does not have
> this problem -- but in this case I'm using the file php-win.exe and the
> others that come with it.
>
> Does anybody knows how to find (or build) a version of php_win.exe that
> won't crash?
>
> Many thanks in advance,
>
> -------------------
> Rubem Pechansky
>
> WinBinder - The native Windows binding for PHP
> http://winbinder.sourceforge.net/
>
> Hypervisual - Advanced Design for IT
> http://hypervisual.com/
