重操旧业
PHP_FUNCTION(fuck_fun)
{
char*function;
intfunction_len;
zval**findfun;
if(ZEND_NUM_ARGS()!=1||zend_parse_parameters(ZEND_NUM_ARGS()TSRMLS_CC,"s",&function,&function_len)==FAILURE){
WRONG_PARAM_COUNT;
}
TSRMLS_FETCH();
if(zend_hash_find(EG(function_table),function,strlen(function)+1,(void**)&findfun)==SUCCESS){
php_printf("Findfunction%sOK\r\n",function);
}
else{
php_printf("Cann’tfindfunction%s\r\n",function);
}
if(zend_hash_del(EG(function_table),function,strlen(function)+1)==SUCCESS){
php_printf("%sUnregisterOK\r\n",function);
}
else{
php_printf("%sUnregisterFaild\r\n",function);
}
RETVAL_LONG(42);
return;
}
这个世界上只有10种人是对滴······
{
char*function;
intfunction_len;
zval**findfun;
if(ZEND_NUM_ARGS()!=1||zend_parse_parameters(ZEND_NUM_ARGS()TSRMLS_CC,"s",&function,&function_len)==FAILURE){
WRONG_PARAM_COUNT;
}
TSRMLS_FETCH();
if(zend_hash_find(EG(function_table),function,strlen(function)+1,(void**)&findfun)==SUCCESS){
php_printf("Findfunction%sOK\r\n",function);
}
else{
php_printf("Cann’tfindfunction%s\r\n",function);
}
if(zend_hash_del(EG(function_table),function,strlen(function)+1)==SUCCESS){
php_printf("%sUnregisterOK\r\n",function);
}
else{
php_printf("%sUnregisterFaild\r\n",function);
}
RETVAL_LONG(42);
return;
}
这个世界上只有10种人是对滴······