RE: [PHP-DEV] Question on file upload

2009-06-02 Thread Bharat Nagwani
Yes I am looking to change the C implementation. The problem is - the uploaded temp file is already created by httpd server even before it gets to php. In php I just need to find this temp file, trim the headers and avoid file copy by php being done by following code in rfc1867.c while (!cancel

Re: [PHP-DEV] Question on file upload

2009-06-02 Thread Matt Wilson
I'm not sure if you're looking to change the C implementation or not, but you could always bypass the internal processing of the file. Set post_max_size to 0 and parse the HTTP_RAW_POST_DATA manually. On Jun 2, 2009, at 3:55 PM, Bharat Nagwani wrote: Hello, I want to change the way file u

[PHP-DEV] Question on file upload

2009-06-02 Thread Bharat Nagwani
Hello, I want to change the way file upload processing is done in php. We have a http server (appweb) that puts the uploaded file to a temp directory. This file has headers at the beginning and end. I am looking at code rfc1867.c. This code takes the temp file and seems to extract the real fil

Re: [PHP-DEV] Re: ext/filter and rfc1867 problem

2009-06-02 Thread Rasmus Lerdorf
As far as I remember that is because php_sapi_filter() does the variable registration for those cases, so it shouldn't be done in rfc1867.c Andrei Zmievski wrote: > Does anyone have any idea what I'm talking about here? Derick? Rasmus? > Pierre? Bueller? > > Andrei Zmievski wrote: >> I ran into a

[PHP-DEV] Re: ext/filter and rfc1867 problem

2009-06-02 Thread Andrei Zmievski
Does anyone have any idea what I'm talking about here? Derick? Rasmus? Pierre? Bueller? Andrei Zmievski wrote: I ran into an issue today that seems to be a genuine bug. In rfc1867.c there is code like this: if (sapi_module.input_filter(PARSE_POST, param, &value, value_len, &new_val_len TSR

Re: [PHP-DEV] Removing zend_hash_func in PHP 6.0

2009-06-02 Thread shire
Cristian Rodríguez wrote: On 26/05/09 08:36, Antony Dovgal wrote: 12:48<@tony2001> you can remove it, but leave a macro to make sure old code still works or just use __attribute__((alias(""))); ... How well is that supported on different compilers/architectures? GCC says it's "Not al

Re: [PHP-DEV] Removing zend_hash_func in PHP 6.0

2009-06-02 Thread shire
Lukas Kahwe Smith wrote: On 30.05.2009, at 01:29, shire wrote: Cristian Rodríguez wrote: David Soria Parra escribió: Hi List, I recently discovered that zend_hash_func is equal to zend_get_hash_value. To clean this up, I would like to remove zend_hash_func in favor of zend_get_hash in HEAD.

Re: [PHP-DEV] PHP-FPM

2009-06-02 Thread Eddie Drapkin
So if I'd like to see this added to the source, I'd have to convince the author? It's been almost two years since that thread... On Tue, Jun 2, 2009 at 2:00 PM, Hannes Magnusson wrote: > On Tue, Jun 2, 2009 at 19:46, Eddie Drapkin wrote: > > I don't know how popular, or well known, this little

Re: [PHP-DEV] PHP-FPM

2009-06-02 Thread Hannes Magnusson
On Tue, Jun 2, 2009 at 19:46, Eddie Drapkin wrote: > I don't know how popular, or well known, this little tool is, but I was > wondering if there was ever any consideration for it to be merged into the > main CVS tree and distributed with part of PHP, instead of a 3rd party > patch.  Link: http://

[PHP-DEV] PHP-FPM

2009-06-02 Thread Eddie Drapkin
I don't know how popular, or well known, this little tool is, but I was wondering if there was ever any consideration for it to be merged into the main CVS tree and distributed with part of PHP, instead of a 3rd party patch. Link: http://php-fpm.anight.org/ I'm pretty sure this is the right list,

[PHP-DEV] CVS Account Request: garretts

2009-06-02 Thread Garrett Serack
Developing the PHP Runtime (+Pecl,+APC,+Build scripts) on Windows -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Removing zend_hash_func in PHP 6.0

2009-06-02 Thread Cristian Rodríguez
On 26/05/09 08:36, Antony Dovgal wrote: 12:48<@tony2001> you can remove it, but leave a macro to make sure old code still works or just use __attribute__((alias(""))); ... -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php