Consequence and consistence , part 2
Posted on 2009-07-08 18:36:05 EEST.
Zend is from Mars and PHP is from Moon.
This works:
zend_class_entry **ce;
const gchar *rmn = "reflectionmethod";
if (zend_hash_find(CG(class_table), (gchar *)rmn, strlen(rmn)+1, (void **) &ce) == FAILURE)
return NULL;
And this segfaults badly somewhere in Zend internals:
zend_class_entry **ce;
const gchar *rmn = "ReflectionMethod";
zend_lookup_class((gchar *)rmn, strlen(rmn), &ce TSRMLS_CC);
I wOndER wHere I mAde misTAkE?