[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

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] 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(); } } 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);

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