Re: [PHP-DEV] [Fwd: [PATCH] Backport of HEADs output API]

2008-09-25 Thread Lukas Kahwe Smith
On 18.09.2008, at 21:02, Michael Wallner wrote: In case the original with patches attached doesn't get through: http://dev.iworks.at/PATCHES/php53-backport_output.txt http://dev.iworks.at/PATCHES/pecl-backport_output.txt well the question is does it fix some real world bugs? this late in

Re: [PHP-DEV] [Fwd: [PATCH] Backport of HEADs output API]

2008-09-25 Thread Pierre Joye
hi, On Thu, Sep 25, 2008 at 3:54 PM, Lukas Kahwe Smith <[EMAIL PROTECTED]> wrote: > > On 18.09.2008, at 21:02, Michael Wallner wrote: > >> In case the original with patches attached doesn't get through: >> >> http://dev.iworks.at/PATCHES/php53-backport_output.txt >> http://dev.iworks.at/PATCHES/pe

Re: [PHP-DEV] true namespaces, yet another point of view

2008-09-25 Thread Lukas Kahwe Smith
On 24.09.2008, at 01:17, Guilherme Blanco wrote: For those that do not understand very well the explanation of jvlad... He's suggesting to change the class struct to be an scope struct, and have a property that tells if it's a namespace or a class, and reuse the implementation of class which a

Re: [PHP-DEV] namespace issues

2008-09-25 Thread Lukas Kahwe Smith
On 23.09.2008, at 05:39, Larry Garfield wrote: "Most of the functionality could be easily achieved using static class methods". As someone who uses both functions and classes with equal comfort, I have to say "GAH, NO NO NO!" to that statement. Classes as pseudo- namespaces are fundamental

Re: [PHP-DEV] namespace issues

2008-09-25 Thread Lukas Kahwe Smith
On 23.09.2008, at 09:47, Dmitry Stogov wrote: Stanislav Malyshev wrote: Hi! On the ZendCon, we (Marcus, Elizabeth, Andi and myself) had a talk about what we'd like to do with namespaces, and we arrived at the following conclusions, which we propose to implement in 5.3: 1. Allow braces for

[PHP-DEV] PHP opcode documentation

2008-09-25 Thread zoe
Hi I have some PHP opcode documentation which might be useful, an html version is linked here: http://www.zapt.info/opcodes.html. The hard work (writing the samples) was all done by Mich and Toyo. All I've done is written some PHP and used a slightly modified VLD to be able to automatically

Re: [PHP-DEV] [PATCH] Fix Bug #46145

2008-09-25 Thread Ilia Cheishvili
According to CVS, it has been that way since at least April of 2002. The last time anyone touched it was a year and a half ago to clean up whitespace. So you're right, this very well may be a "won't fix". In that case, let's mark it as such. Ilia On Thu, Sep 25, 2008 at 12:27 AM, Jani Taskinen

Re: [PHP-DEV] true namespaces, yet another point of view

2008-09-25 Thread jvlad
> > or just leave the organization of things to classes (with long class > names with a nice prefix to prevent collissions) and leave it to > class_alias() (and equivalent features for functions .. also with the > option of a compile time aliasing) to handle the aliasing. > > this removes the ne

Re: [PHP-DEV] true namespaces, yet another point of view

2008-09-25 Thread jvlad
I share your thoughts and yes namespaces are needed and wanted, but what's implemented at the moment is quite far from what I'd call a namespace. I need and want to see there all language entities including variables, constants, classes, interfaces, and functions. Want to see them all supported

Re: [PHP-DEV] namespace issues

2008-09-25 Thread Stanislav Malyshev
Hi! Right, Stas, did you also discuss removal of constants? Seems logical as the really the same arguments apply. IMO constants do not produce that much trouble, since they are not as extensively used than methods and functions. -- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED]

Re: [PHP-DEV] PHP opcode documentation

2008-09-25 Thread Rasmus Lerdorf
zoe wrote: I have some PHP opcode documentation which might be useful, an html version is linked here: http://www.zapt.info/opcodes.html. Cool. I think the php-doc folks can help you come up with something for this. I have cc'ed them. Not sure how easy it will be to convert to docbook-xml,

Re: [PHP-DEV] Classes userland lookup (with namespaces)

2008-09-25 Thread Mark
And just to answer to myself, here's a sample implementation of the __resolve() magic function. It's missing its second and third parameters and is still far from the final goal of this implementation, but at least it allows me to demonstrate a bit how this works. For example uses & interest, plea

Re: [PHP-DEV] OpenSSL random pseudo bytes

2008-09-25 Thread Cristian Rodríguez
Scott MacVicar escribió: > Hi All, > > Attached and uploaded [1] is a patch to add the OpenSSL random pseudo > byte function, at the moment it will return FALSE if the bytes aren't > considered cryptographically strong, I am however considering making > this parameter controlled. > > Any objectio

Re: [PHP-DEV] OpenSSL random pseudo bytes

2008-09-25 Thread Scott MacVicar
On 25 Sep 2008, at 22:59, Cristian Rodríguez <[EMAIL PROTECTED]> wrote: Scott MacVicar escribió: Hi All, Attached and uploaded [1] is a patch to add the OpenSSL random pseudo byte function, at the moment it will return FALSE if the bytes aren't considered cryptographically strong, I am ho

Re: [PHP-DEV] OpenSSL random pseudo bytes

2008-09-25 Thread Cristian Rodríguez
Scott MacVicar escribió: > If you don't care don't pass a parameter. ohh.. right, I misinterpreted it .. sorry ;) -- "A computer is like an Old Testament god, with a lot of rules and no mercy. " Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Deve

Re: [PHP-DEV] PHP Suspendable requests for Apache

2008-09-25 Thread steve
>> Not true.. Tomcat supports comet, and it runs on APR. Yes, the thread pool >> is small, but there is always a solution. The idea is to return the thread >> back to Apache's thread pool while waiting for an event: >> http://tomcat.apache.org/tomcat-6.0-doc/aio.html > > Then convince the Apache de

Re: [PHP-DEV] Re: [PHP] PHP 5.3.0alpha2

2008-09-25 Thread steve
OK, I finally went to do it and this link doesn't work: PHP 5.3.0alpha2 VC9 x86 http://downloads.php.net/pierre/php-5.3.0alpha2-nts-Win32-VC9.zip On Thu, Sep 4, 2008 at 5:23 AM, Johannes Schlüter <[EMAIL PROTECTED]> wrote: > On Wed, 2008-09-03 at 23:36 -0700, steve wrote: >> It is pretty much

Re: [PHP-DEV] namespace issues

2008-09-25 Thread Larry Garfield
On Thursday 25 September 2008 9:08:27 am Lukas Kahwe Smith wrote: > > No, namespaces for functions can most certainly *not* be emulated > > with either > > variable functions or static methods. Dropping namespace support for > > functions makes namespaces mostly useless for anyone who is not 100%

Re: [PHP-DEV] namespace issues

2008-09-25 Thread Arvids Godjuks
2008/9/22 Stanislav Malyshev <[EMAIL PROTECTED]> > Hi! > > 3. Functions will not be allowed inside namespaces. We arrived to > conclusion that they are much more trouble than they're worth, and summarily > we would be better off without them. Most of the functionality could be > easily achieved us

Re: [PHP-DEV] PHP 5.3 Windows builds, pdo_sqlite

2008-09-25 Thread steve
Using the non-VC9 nts build (and after erasing sqlite files so they get created from scratch) I can have PDO sqlite create a table, and add records, but not delete records (SQLSTATE[HY000]: General error: 1 SQL logic error or missing database). Reverting to 5.2.x works again. We use a cache layer t