[PHP-DEV] RELEASE_1_0_4

2006-01-23 Thread Derick Rethans
Hello! For some reason all of our code in all repositories in CVS have a tag "RELEASE_1_0_4". Seems to have happened on the 18th, according to the timestamp in the ChangeLog's history: http://cvs.php.net/viewcvs.cgi/php-src/ChangeLog?view=log If you think you've something to do with this, plea

RE: [PHP-DEV] Static vs. non static

2006-01-23 Thread Dmitry Stogov
Hi Marcus, I like parent::foo() mach more then parent->foo() and mach-mach more then $this->parent::foo(). Marcus, could you please explain why do you like to change syntax? Are you looking from ZE or SPL side? :) (I just saw that your latest patches were releated to static methods). Thanks. Dmi

Re: [PHP-DEV] JSON inclusion in core

2006-01-23 Thread Rasmus Lerdorf
Alan Knowles wrote: I'm not sure that js->PHP is that critical (in terms of getting clever with objects etc), doing standard HTTP GET/POST requests with urlencoded values into $_GET/$_POST, 99% of the time is far more efficient way of sending data to the server, and alot easier to debug.. You c

Re: [PHP-DEV] JSON inclusion in core

2006-01-23 Thread Alan Knowles
I'm not sure that js->PHP is that critical (in terms of getting clever with objects etc), doing standard HTTP GET/POST requests with urlencoded values into $_GET/$_POST, 99% of the time is far more efficient way of sending data to the server, and alot easier to debug.. You can also implement th

Re: [PHP-DEV] Fwd: [PHP] proc_open and buffer limit?

2006-01-23 Thread Wez Furlong
I suggest running the script using strace: strace -e trace=file php myscript.php and taking a look to see what the underlying read/write syscalls are up to. --Wez. On 1/23/06, Mark Krenz <[EMAIL PROTECTED]> wrote: > > Thanks for your help. stream_copy_to_stream does seem like a better > way

Re: [PHP-DEV] JSON inclusion in core

2006-01-23 Thread l0t3k
"Bart de Boer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Bart de Boer wrote: >> Bart > > > I was wrong when I said that objects would be more consistent with the > behaviour in JavaScript. When I said that I had the following JavaScript > syntax in mind: > > object.property;

Re: [PHP-DEV] JSON inclusion in core

2006-01-23 Thread Bart de Boer
Bart de Boer wrote: Mike Naberezny wrote: Bart de Boer wrote: Maybe introduce an optional second argument "decodetype" to json_decode() where you could pass on a constant like JSON_ARRAY or JSON_OBJECT? For example: $assoc_array = json_decode($json_string, JSON_ARRAY); $object = json_d

Re: [PHP-DEV] Static vs. non static

2006-01-23 Thread Marcus Boerger
Hello Andi, Sebastian, Monday, January 23, 2006, 9:25:29 AM, Sebastian wrote: > Lukas Smith schrieb: >> If I get Marcus proposal properly he would then allow changing things >> from: >> parent::method(); >> >> to >> >> parent->method(); > If that is the case, then it would be consistent to a

[PHP-DEV] Unicode Progress (was: Naming Arguments)

2006-01-23 Thread Sean Coates
Andrei Zmievski wrote: > There is no "unconverted" function list. There is unicode-progress.txt > file where we have been tracking what has been done, but I'm not sure as > to its accuracy as of yet. Some of the functions listed there may need > to be looked over after Dmitry's patch. It would be

RE: [PHP-DEV] JSON inclusion in core

2006-01-23 Thread Douglas Crockford
> I guess I am confused. > Javascript, and thus JSON, has no concept of an object. > It has something it calls an object, but that is just an > associative array. > Are you trying to layer some other syntax on top of > JSON to convey more meaning than what JSON/Javascript > natively suppo

Re: [PHP-DEV] Naming Arguments

2006-01-23 Thread Andrei Zmievski
There is no "unconverted" function list. There is unicode-progress.txt file where we have been tracking what has been done, but I'm not sure as to its accuracy as of yet. Some of the functions listed there may need to be looked over after Dmitry's patch. -Andrei On Jan 18, 2006, at 3:31 PM, A

Re: [PHP-DEV] JSON inclusion in core

2006-01-23 Thread Bart de Boer
Mike Naberezny wrote: Bart de Boer wrote: Maybe introduce an optional second argument "decodetype" to json_decode() where you could pass on a constant like JSON_ARRAY or JSON_OBJECT? For example: $assoc_array = json_decode($json_string, JSON_ARRAY); $object = json_decode($json_string, J

Re: [PHP-DEV] JSON inclusion in core

2006-01-23 Thread Mike Naberezny
Bart de Boer wrote: Maybe introduce an optional second argument "decodetype" to json_decode() where you could pass on a constant like JSON_ARRAY or JSON_OBJECT? For example: $assoc_array = json_decode($json_string, JSON_ARRAY); $object = json_decode($json_string, JSON_OBJECT); I'm not

Re: [PHP-DEV] JSON inclusion in core

2006-01-23 Thread Pierre
On Mon, 23 Jan 2006 11:55:26 -0500 [EMAIL PROTECTED] (Daniel Convissor) wrote: > Hi Rasmus: > > On Sun, Jan 22, 2006 at 03:02:02PM -0800, Rasmus Lerdorf wrote: > > > > A useful tag filter that understands attributes as well so you can > > lock down exactly which tags with which attributes you wi

Re: [PHP-DEV] JSON inclusion in core

2006-01-23 Thread Daniel Convissor
Hi Andi: On Sat, Jan 21, 2006 at 08:01:25AM -0800, Andi Gutmans wrote: > > Well I think the right thing to do is pass an array of "allowed" > classes into json_decode() and raise an error/exception if it's not > in the list. > > I think it wasn't clear to some people why this is needed. > I th

Re: [PHP-DEV] JSON inclusion in core

2006-01-23 Thread Matthew C. Kavanagh
On Mon, 2006-01-23 at 11:55 -0500, Daniel Convissor wrote: > Hi Rasmus: > > On Sun, Jan 22, 2006 at 03:02:02PM -0800, Rasmus Lerdorf wrote: > > > > A useful tag filter that understands attributes as well so you can lock > > down exactly which tags with which attributes you wish to allow through.

Re: [PHP-DEV] JSON inclusion in core

2006-01-23 Thread Daniel Convissor
Hi Rasmus: On Sun, Jan 22, 2006 at 03:02:02PM -0800, Rasmus Lerdorf wrote: > > A useful tag filter that understands attributes as well so you can lock > down exactly which tags with which attributes you wish to allow through. Tags? Attributes? I can try to guess what you mean, but perhaps yo

Re: [PHP-DEV] Fwd: [PHP] proc_open and buffer limit?

2006-01-23 Thread Mark Krenz
Thanks for your help. stream_copy_to_stream does seem like a better way to go. However I still have the same problem. Only 65536 bytes are written to /tmp/output.txt. Here is the new source code based on your ideas: --

RE: [PHP-DEV] Static vs. non static

2006-01-23 Thread Andi Gutmans
Thanks for pointing that out. I confused the earlier CVS commit with this change. At 11:12 PM 1/22/2006, Dmitry Stogov wrote: Andi, Marcus didn't commit this patch. BTW: I am glad with existing syntax and semantic and don't see any reason to change them. They are simular to other programming

Re: [PHP-DEV] get_headers() improvements

2006-01-23 Thread Ilia Alshanetsky
Hannes Magnusson wrote: Hi all Isn't http://news.php.net/php.cvs/36579 fix for #34059 ? (not mentioned in the NEWS file - and the report is still open). The patch addresses the feature request you've mentioned, I've closed that particular bug. Ilias previous get_headers() patch (http://new

Re: [PHP-DEV] Fwd: [PHP] proc_open and buffer limit?

2006-01-23 Thread Wez Furlong
There are quite a few bad streams usages there. I'd rewrite your code like this: $words = fopen('/usr/share/dict/words', 'r'); stream_copy_to_stream($words, $pipes[0]); fclose($pipes[0]); fclose($words); $output = stream_get_contents($pipes[1]); fclose($pipes[1]); proc_close($process); My guess

[PHP-DEV] get_headers() improvements

2006-01-23 Thread Hannes Magnusson
Hi all Isn't http://news.php.net/php.cvs/36579 fix for #34059 ? (not mentioned in the NEWS file - and the report is still open). Ilias previous get_headers() patch (http://news.php.net/php.cvs/36564) allows get_headers() to use "default context" set by stream_context_get_default() (which btw is q

[PHP-DEV] PHP 5 Bug Summary Report

2006-01-23 Thread internals
PHP 5 Bug Database summary - http://bugs.php.net Num Status Summary (385 total including feature requests) ===[*Directory/Filesystem functions] 35691 Assigned Can't change to another drive letter using chdir()

Re: [PHP-DEV] Static vs. non static

2006-01-23 Thread Sebastian Bergmann
Lukas Smith schrieb: > If I get Marcus proposal properly he would then allow changing things > from: > parent::method(); > > to > > parent->method(); If that is the case, then it would be consistent to allow this->method() this->attribute parent->attribute too, no? (Note that I am

Re: [PHP-DEV] Static vs. non static

2006-01-23 Thread Lukas Smith
Andi Gutmans wrote: Yes, this was by design. Via class it should be ::method() and via object it should be ->method(). Why do you think this is wrong? I think it actually makes a lot of sense and don't see what we gain from allowing to call self->method(). If there's a good reason, I'd be open

[PHP-DEV] PHP 4 Bug Summary Report

2006-01-23 Thread internals
PHP 4 Bug Database summary - http://bugs.php.net Num Status Summary (615 total including feature requests) ===[*General Issues]== 36001 Assigned make install fails when --enable-memory-limit used 36002 Feedback bundled pear packages