Re: [PHP-DEV] __call_static() Magic Method

2007-07-14 Thread Thomas Moenicke
This is actually a very good idea. I had to put a hook into the opcode handler for static method calls to get the same result which is not really elegant. I was waiting for this feature for a couple month. Also I found out that the names of the static methods are already lowercase when it comes

[PHP-DEV] get_method - handlers

2006-09-07 Thread Thomas Moenicke
Hi, I tried to overwrite the 'get_method' handler and it works fine, but would need the same effect for static methods. I tried something but found no proper way to by-pass the zend_std_get_static_method() in an extension. Is there a solution for it? Thomas -- PHP Internals - PHP Runtime Deve

Re: [PHP-DEV] Extensions building tutorial

2006-05-28 Thread Thomas Moenicke
Hi Yoav, four chapters with example about writing extensions and SAPIs, useful as an introduction: http://www.amazon.com/gp/product/0672325616/ -- Thomas -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

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

[PHP-DEV] class inheritance

2006-05-08 Thread Thomas Moenicke
Hi, I have two classes, A and B: B inherits from A. B is written in PHP, A is implemented inside of an extension. B has an array: class B extends A { var $myArray = array("one", "two", "three"); function __construct() { parent::__construct(); } }

Re: [PHP-DEV] [PATCH] __toString()

2006-01-27 Thread Thomas Moenicke
Carl P. Corliss wrote on Freitag, 27. Januar 2006 16:27: > The pecl package 'operator' (http://pecl.php.net/package/operator) > sounds like what you might be looking for. Wow, great! All I have to do is to implement a __assign_concat() method? Incredible! Thank you, thanks to Sara! Why this is

Re: [PHP-DEV] [PATCH] __toString()

2006-01-27 Thread Thomas Moenicke
Marcus Boerger wrote: > Hello Jeremy, > > it is supposed to work everywhere in head and will be available in 5.2. > Is there a generic way (for extensions, of course) to override the operators between objects implementing __toString()? See, I have two objects: $o1 = new QString("php")