Jani Taskinen wrote:
> Seems like PHAR causes quite unexpected things, f.e.
> http://bugs.php.net/bug.php?id=46194 where PHP crashes if file does not
> exist. Please, can this crap be disabled by default (ALWAYS) and only
> those who actually need it can enable it?

Hi Jani,

Classic overreacting, and disrespect to years of careful work.

First of all, this bug has existed for all of 10 hours, and the problem
is easy to fix, and caused because I never imagined PHP would be stupid
enough to pass in a null pointer to zend_compile_file (kind of hard to
compile a file whose name is undefined).

This is a 3-line fix, and is only caused by a bug in the CGI handler
coupled with lighttpd, which is setting filename to 0x0, something none
of the other sapis do when a file is non-existent.

Let's think about this for a second: why pass in a null pointer for a
filename to a function whose purpose is to compile a file in the first
place?

How about we disable the CGI sapi under lighttpd by default?

Don't be such a weenie.

Greg

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to