Re: [PHP-DEV] ze1 cleanup

2006-05-09 Thread Marcus Boerger
Hello Hannes, Wednesday, May 10, 2006, 2:43:21 AM, you wrote: > Hi all > Couple of leftovers from hellys MFH regarding ze1; > Tests that can be deleted: > Zend/tests/bug27641.phpt > Zend/tests/bug30332.phpt > Zend/tests/bug31828.phpt > Zend/tests/bug32080.phpt > Zend/tests/bug32852.phpt > Zend/

[PHP-DEV] ze1 cleanup

2006-05-09 Thread Hannes Magnusson
Hi all Couple of leftovers from hellys MFH regarding ze1; Tests that can be deleted: Zend/tests/bug27641.phpt Zend/tests/bug30332.phpt Zend/tests/bug31828.phpt Zend/tests/bug32080.phpt Zend/tests/bug32852.phpt Zend/tests/bug33243.phpt Zend/tests/bug34712.phpt Zend/tests/bug34767.phpt ext/dom &

[PHP-DEV] Compile Time Resolution of Constants

2006-05-09 Thread Sara Golemon
I noticed some time ago, while browsing around ZE sources that as of 5.1, constants are resolved to literals at compile time when possible. What I didn't notice was that this is only done if the constant in question has the CONST_CT_SUBST flag set (which *NO* constants in the stock distribution ha

Re: [PHP-DEV] class inheritance

2006-05-09 Thread Thomas Moenicke
Hi Marcus, Marcus Boerger wrote: > sure php is unlike c++ where everything is handled via vmt's that change > during construction. In php the ctors are called after the default values > are applied to every member variable. Actually the most outer ctor is being > called so in your case B's. If t

Re: [PHP-DEV] INIT_CLASS_ENTRY and char*

2006-05-09 Thread Brandon Fosdick
Marcus Boerger wrote: > that's by design. Look into: ext/spl/spl_functions.c:spl_register_sub_class() Thanks, I had already come up with the same workaround, but it took forever to figure out what the problem was. The only errors I got related to not being able to find the class, and ce.name al

Re: [PHP-DEV] [php6] accepting an ascii string only

2006-05-09 Thread Andrei Zmievski
Check out ext/unicode/property.c where zend_unicode_to_ascii() is being used. -Andrei On May 9, 2006, at 12:02 AM, Derick Rethans wrote: On Mon, 8 May 2006, Andrei Zmievski wrote: There is no way to do it right now. I could see it being useful, though. Anyone else have an opinion on this?

Re: [PHP-DEV] array type hint and SPL array interfaces

2006-05-09 Thread Tobias Schlitt
Hi Jared Williams! On 05/09/06 13:17 you wrote: >> I wondered, why PHP complains, if you have an array type hint in a >> method prototype and provide an object to this method, that >> implements the SPL interfaces to use objects as arrays. I would >> expect that, if an object can be handled exact

Re: [PHP-DEV] Getting system statistics

2006-05-09 Thread Ilia Alshanetsky
Statgrab extension in PECL is what you are looking for. On 9-May-06, at 12:51 AM, Senthil Murugan wrote: Hi, Is there any funciton to get the system related statistics like, meminfo, cpuinfo, etc. I just searched for that option but I could not find it. In case of linux we can use /proc/mem

RE: [PHP-DEV] array type hint and SPL array interfaces

2006-05-09 Thread Jared Williams
> > Hi Marcus! > > I wondered, why PHP complains, if you have an array type hint > in a method prototype and provide an object to this method, > that implements the SPL interfaces to use objects as arrays. > I would expect that, if an object can be handled exactly like > an array, PHP shoul

[PHP-DEV] array type hint and SPL array interfaces

2006-05-09 Thread Tobias Schlitt
Hi Marcus! I wondered, why PHP complains, if you have an array type hint in a method prototype and provide an object to this method, that implements the SPL interfaces to use objects as arrays. I would expect that, if an object can be handled exactly like an array, PHP should not complain, since t

[PHP-DEV] Digitizing Service

2006-05-09 Thread Johnson
Dear Friend, We are a professional digitizing company ,we have many years experience in this area,if you need digitizing service .please email me -We can provide many formats ,dst ,wilcom(emb),cnd,exp,dsb,,xxx,dat,dsz and so on. -Turnaround Time: 24 hrs.If it's urgent, the logo can be done in jus

Re: [PHP-DEV] INIT_CLASS_ENTRY and char*

2006-05-09 Thread Marcus Boerger
Hello Brandon, that's by design. Look into: ext/spl/spl_functions.c:spl_register_sub_class() regards marcus Tuesday, May 9, 2006, 6:58:43 AM, you wrote: > I think I found a bug in the INIT_OVERLOADED_CLASS_ENTRY_EX macro. At > least, I think its a bug, somebody else might think its a feature.

Re: [PHP-DEV] [php6] accepting an ascii string only

2006-05-09 Thread Derick Rethans
On Mon, 8 May 2006, Andrei Zmievski wrote: > There is no way to do it right now. I could see it being useful, though. > Anyone else have an opinion on this? I think we should have a look at it when there is a real need for it as I think it's going to be a pain for the users... Derick -- Deric