Re: [PHP-DEV] Upload Progress Meter Patch

2004-11-10 Thread Klaus Reimer
Curt Zirzow wrote: You can provide a progress bar, as php stands right now, without any patch. Ok, then tell me how, please. Is it documented somewhere? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Upload Progress Meter Patch

2004-11-09 Thread Klaus Reimer
Joe Orton wrote: It is a user interface problem, so it should be done there. It's really the only place it can be done safely Web browsers don't offer any API to allow a client-side progress bar. The only client-side solution I know of is ActiveX and Java and these solutions are not available to

[PHP-DEV] rfc1867_callback

2004-11-06 Thread Klaus Reimer
Hello, here comes a first try of the patch (unified against HEAD, see attachment). It adds a single callback to main/rfc1867.c and a function to register a callback function. The callback looks like this: void *php_rfc1867_callback(void *tracking, int event, int bytes, char *param, char

Re: [PHP-DEV] Upload Progress Meter Patch

2004-11-05 Thread Klaus Reimer
Curt Zirzow wrote: And this extension is working WITHOUT callbacks in main/rfc1867.c? correct. The only thing that needs to go into the core of php is a new php.ini option to disable parsing the input. Ok, then you can do with PHP the same as I have done with a CGI program before I found the menti

Re: [PHP-DEV] Upload Progress Meter Patch

2004-11-05 Thread Klaus Reimer
Curt Zirzow wrote: I have a pecl extenstion started that provides this functionality. It needs some more testing and a patch so php doesn't parse the data. And this extension is working WITHOUT callbacks in main/rfc1867.c? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visi

Re: [PHP-DEV] Upload Progress Meter Patch

2004-11-05 Thread Klaus Reimer
Marcus Boerger wrote: Thinking about it another time you're right. So what the patch offers is all we can do. However having the session id available somehow would make the the patch usefull. I have some ideas for this. It may even be possible to remove the UPLOAD_IDENTIFIER-stuff from the patch

Re: [PHP-DEV] Upload Progress Meter Patch

2004-11-05 Thread Klaus Reimer
Marcus Boerger wrote: we've haered of it in the past but it was too late to add for 4.3 series and obviously nobody cared to look for it for 5.0. So no the next version we could add it to would be 5.1. In general the idea is nice but it should also allow for script callbacks: This is possible? Up

[PHP-DEV] Upload Progress Meter Patch

2004-11-05 Thread Klaus Reimer
Hello, The website "http://pdoru.from.ro/"; states that "hopefully the patch will be integrated into PHP". This patch adds some hooks to main/rfc1867.c so PHP modules can implement stuff like reading the current state of a file upload. Such an external PHP module can write the state to disk or s

Re: [PHP-DEV] localeconv not working

2004-11-03 Thread Klaus Reimer
Moriyoshi Koizumi wrote: Yup, save all the relevant environment variables beforehand and restore them with setlocale() after the localeconv() call. Either way, That's a valid bug that needs attention. It's already in the BTS (#30638) and is already assigned. -- Bye, K (Fid

[PHP-DEV] localeconv not working

2004-10-30 Thread Klaus Reimer
Hello, I just notices that localeconv is not working properly (at least in PHP 5.0.2 and 4.3.9), it does not return the correct thousands_sep and decimal_point (See my mail at php-general). Now I took a quick look in the source code and I found this in ext/standard/string.c (function setlocale)

Re: [PHP-DEV] curl_init() is bypassing safe_mode & open_basedir restrictions

2004-10-29 Thread Klaus Reimer
Derick Rethans wrote: Myth: Safe mode makes a PHP installation safe. I never said this. webserver, not of a scripting language and therefore we shall not put hacks in extensions because libraries do not adhere to safe mode. If there IS a possibility to make safe-mode a little bit more secure why

Re: [PHP-DEV] curl_init() is bypassing safe_mode & open_basedir restrictions

2004-10-29 Thread Klaus Reimer
Sterling Hughes wrote: no curl does not need to respect php's safemode, adding such checks at this level is wrong. people who compile curl, can do so without local file access, and this will solve their problem. What about people who use precompiled packages like the Debian packages? They do

[PHP-DEV] array(...)[]

2004-10-17 Thread Klaus Reimer
Hi, I've just seen that finally it's possible to do "$object->getOtherObject()->doSomething()" with PHP5 which was not possible in PHP4. But I wonder why something like this still does not work: $object->returnArray()[$index] returnArray()[$index] array(1,2,3,4)[$index] It would be really