Re: [PHP-DEV] ignored patches

2007-12-02 Thread Gregory Beaver
Stanislav Malyshev wrote: > As for multiple namespaces per file, it adds certain complications, both > syntax-wise and engine-wise, so I'm still not 100% convinced it is worth > it. Which are? Remember, we both found, independently, that combining separate files yields from a 10-30% performance i

[PHP-DEV] Proposal: str_truncate()

2007-12-02 Thread Felipe Pena
Hi. I guess interesting have in PHP one function for truncate string *without break it*, more specifically alphanumeric chars. PS: wordwrap() works different, see the phpt What you think about it? Patch: http://ecl.zoone.com.br/etc/patches/str_truncate.patch --TEST-- str_truncate --FILE-- --E

[PHP-DEV] [PATCH] implement stream_set_write_buffer for sockets

2007-12-02 Thread Vincent NEGRIER
Hello, Currently stream_set_write_buffer() only works with file streams. If used on socket streams it always returns -1 and does nothing. This can be quite problematic when using datagram sockets because any datagram bigger than the default 8Kb gets chopped and more than one datagram get sent

Re: [PHP-DEV] private properties ....

2007-12-02 Thread Etienne Kneuss
Hello, Sorry late replies shouldn't be allowed ;) class A { private $foo = 2; } class B extends A { } $b = new B; $b->foo = 3; // Allowed already, it will create a public property foo in $b -- Etienne Kneuss http://www.colder.ch Men never do evil so completely and cheerfully as when they do it

Re: [PHP-DEV] Proposed feature for json_encode()

2007-12-02 Thread Alexey Zakhlestin
On 12/2/07, Rasmus Lerdorf <[EMAIL PROTECTED]> wrote: > The \u syntax is specific to JSON, yes. \u syntax is specific to javascripts string literals, regular expressions and identifiers[1] And JSON is not the only way to deliver data into javascript. Manual approaches are still useful [1] - htt

RE: [PHP-DEV] FW: [PHP] PHP 5.2.3 segfault with syslog standard extension

2007-12-02 Thread Rachmel, Nir (Nir)
Hi, I tried your advice, and put a breakpoint at the shutdown function. However it never reaches it! (not normally, and not before the SEGV is sent). In case I didn't write it in the previous threads, I am running the PHP scripts from my web-server (appWeb, which is apache like for embedded syste