PHP Zend Motoru Uzatma ve statik yöntemleri

0 Cevap php

Php için bir uzantı (5.3) yazma i statik bir yöntem üzerinde zend_class_entry işaretçi erişmek istiyorum.

Olmayan statik yöntemleri i getThis() makro ve bunun gibi Z_OBJCE_P makro içinde kullanabilirsiniz:

zend_class_entry ce* = Z_OBJCE_P(getThis());

Now the problem: on static methods the getThis() macro returns a null pointer, so i can not use the Z_OBJCE_P macro.

Statik bir yöntem zend_class_entry erişmek herkes benim için bir çözüm var?

0 Cevap