Re: [PHP-DEV] open_basedir + sessions bug (or a feature?)

2008-08-28 Thread Alexey Zakhlestin
On Thu, Aug 28, 2008 at 1:59 AM, Stanislav Malyshev [EMAIL PROTECTED] wrote: Hi! ext/sessions/mod_files.c:281 has a hardcoded openbasedir-check skipping of /tmp path for storing session-files, if sessions.save_path is not manually set. I would think the idea was to make it easier on

Re: [PHP-DEV] alpha2 scheduled

2008-08-28 Thread Hannes Magnusson
On Thu, Aug 28, 2008 at 02:57, Felipe Pena [EMAIL PROTECTED] wrote: Hello Marcus, Em Qua, 2008-08-27 às 23:47 +0200, Marcus Boerger escreveu: Hello Hannes, Wednesday, August 27, 2008, 8:32:41 PM, you wrote: On Tue, Aug 26, 2008 at 18:27, Lukas Kahwe Smith [EMAIL PROTECTED] wrote: -

[PHP-DEV] Unable to find bug in these few lines of code. Please help.

2008-08-28 Thread KishoreKumar Bairi
Hey guys.. This is the code of a string test_func(resource $handle) which is supposed to return the size of resource as a string. PHP_FUNCTION(test_func) *{* zval *arg1; php_stream_statbuf stat_ssb; *char* *input_stream_len_str; php_stream *input_stream;

Re: [PHP-DEV] [PATCH] New functions: array_replace[_recursive]

2008-08-28 Thread Matt Wilmas
Hi Johannes, - Original Message - From: Johannes Schlüter Sent: Thursday, July 31, 2008 Matt, On Thu, 2008-07-31 at 20:06 +0200, Johannes Schlüter wrote: On Thu, 2008-07-31 at 11:48 -0500, Matt Wilmas wrote: Ugh, I hate that reference/recursion stuff! I have a hard time

Re: [PHP-DEV] [PATCH] No runtime fetching of built-in global constants

2008-08-28 Thread Matt Wilmas
Hi Dmitry, Well, it's been awhile since Alpha 1 :-), so I wanted to finally resend this before Alpha 2! I agree that the additional optimization probably wouldn't happen often, as there won't be that much namespace usage right away, I assume. But I think it makes sense to handle :: prefix

Re: [PHP-DEV] Unable to find bug in these few lines of code. Please help.

2008-08-28 Thread Johannes Schlüter
On Thu, 2008-08-28 at 16:09 +0530, KishoreKumar Bairi wrote: PHP_FUNCTION(test_func) *{* These additional asterisks (*) make the code hard to read. but when I hit http://localhost/test.php Instead of showing the string, my browser is offering *test.php* for download. If I click save, its

Re: [PHP-DEV] alpha2 scheduled

2008-08-28 Thread Stanislav Malyshev
Hi! I'm really sorry, but I have to ask. Since you can detect that this is a nested namespace, why can't we allow it? Because that's not how model was designed and it creates all kind of trouble with name resolution. Basically, you get potentially infinite resolution path. You don't want to

Re: [PHP-DEV] [PATCH] No runtime fetching of built-in global constants

2008-08-28 Thread Lukas Kahwe Smith
On 28.08.2008, at 16:18, Matt Wilmas wrote: Well, it's been awhile since Alpha 1 :-), so I wanted to finally resend this before Alpha 2! I agree that the additional optimization probably wouldn't happen often, as there won't be that much namespace usage right away, I assume. But I think