Re: why these code cause compile error?

From: Date: Wed, 05 Nov 2008 12:49:44 +0000
Subject: Re: why these code cause compile error?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-41682@lists.php.net to get a copy of this message
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

« previous php.internals (#41682) next »