Re: [PHP-DEV] Getting system statistics

2006-05-09 Thread Sean Coates
Is there any funciton to get the system related statistics like, meminfo, cpuinfo, etc. Hello, In the future, please use php-general@lists.php.net for anything not related to PHP internals development. As for your question, see http://pecl.php.net/statgrab S -- PHP Internals - PHP Runtime

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.

[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

[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

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 should not

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

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 exactly like

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] 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

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 that

[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

[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

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