Bug #15915 Updated: the sample code have some wrong on Creating Extensions

From: Date: Mon, 17 Jun 2002 14:19:15 +0000
Subject: Bug #15915 Updated: the sample code have some wrong on Creating Extensions
References: 1  Groups: php.bugs php.doc 
Request: Send a blank email to php-bugs+get-10868@lists.php.net to get a copy of this message
ID: 15915 Updated by: hholzgra@php.net Reported By: yorgo@163.net -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: linux PHP Version: 4.1.2 New Comment: fixed in CVS Previous Comments: ------------------------------------------------------------------------ [2002-03-06 15:46:48] yorgo@163.net http://www.php.net/manual/en/zend.creating.php /* implement standard "stub" routine to introduce ourselves to Zend */ #if COMPILE_DL_FIRST_MODULE <-- this i think can change to #if COMPILE_DL ZEND_GET_MODULE(firstmod) #endif /* implement function that is meant to be made available to PHP */ ZEND_FUNCTION(first_module) { long parameter; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &parameter) == FAILURE) { return; } RETURN_LONG(parmeter); . ^^^^^^ parameter } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15915&edit=1

« previous php.bugs (#10868) next »