Re[2]: [PHP-GTK-DEV] php_win.exe crashes when in a directory with spaces
| From: | Tom Rogers | Date: | Tue, 05 Oct 2004 22:34:46 +0000 |
| Subject: | Re[2]: [PHP-GTK-DEV] php_win.exe crashes when in a directory with spaces | ||
| References: | 1 2 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-757@lists.php.net to get a copy of this message | ||
Hi,
Wednesday, October 6, 2004, 5:24:05 AM, you wrote:
RP> Simon,
RP> The problem is not with the PHP file name. It is *the executable* itself
RP> that can't be placed in a directory with spaces. The shortcut:
RP> "C:\Program Files\WinBinder\php-win.exe" ttfreader.phpw
RP> has quotes, but php_win.exe crashes.
RP> Thanks,
RP> -------------------
RP> Rubem Pechansky
RP> WinBinder - The native Windows binding for PHP
RP> http://winbinder.sourceforge.net/
RP> Hypervisual - Advanced Design for IT
RP> http://hypervisual.com/
RP> ----- Original Message -----
RP> From: <simon@firepages.org>
RP> To: "Rubem Pechansky" <pechansky@hypervisual.com>;
RP> <php-gtk-dev@lists.php.net>
RP> Sent: Monday, October 04, 2004 11:02 PM
RP> Subject: Re: [PHP-GTK-DEV] php_win.exe crashes when in a directory with
RP> spaces
>> Have you tried enclosing the path in quotes ? e.g.
>>>>php_win.exe "c:\program files\blah\blah.php"
>> ?
>> Regards,
>> Simon.
>>
>> ----- Original Message -----
>> From: "Rubem Pechansky" <pechansky@hypervisual.com>
>> To: <php-gtk-dev@lists.php.net>
>> Sent: Monday, October 04, 2004 11:36 PM
>> Subject: [PHP-GTK-DEV] php_win.exe crashes when in a directory with spaces
>>
>>
>>> Hi folks,
>>>
>>> When working on a new WinBinder demo
>>> (http://winbinder.sourceforge.net/),
>> 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 in this situation?
>>>
>>> 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/
>>>
>>> --
>>> PHP-GTK Development Mailing List (http://gtk.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>>
>>>
>>>
>>
Is it crashing because the program is trying to output some warning or
eror?, try putting
ob_start();
as the first line.
--
regards,
Tom