On Wed, 2008-11-05 at 17:07 +0800, 张心灵 wrote:
> I 'am a new guy of  php internal, I tried to define a class in extension
> just for a attempt.
> 
> PHP_MINIT_FUNCTION(zhangjianyu)
> {
>  /* If you have INI entries, uncomment these lines
>  REGISTER_INI_ENTRIES();
>  */
>  zend_class_entry ce;
>  INIT_CLASS_ENTRY(ce, WPS_CLASS_NAME, php_wps_method_functions);
>  php_wps_sc_entry = zend_register_internal_class(&ce TSRMLS_CC);
>  zend_declare_class_constant_double(php_wps_sc_entry, "VERSION",
> sizeof("VERSION"), 1.32 TSRMLS_DC);
>  zend_declare_class_constant_string(php_wps_sc_entry, "NAME",
> sizeof("NAME"), "say say" TSRMLS_DC);

TSRMLS_DC = declaration with comma
you need
TSRMLS_CC = call with comma

Sara has a nice blog article about them (blog.libssh2.org or
something, ...)

johannes


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to