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

From: Date: Wed, 06 Mar 2002 20:46:49 +0000
Subject: Bug #15915: the sample code have some wrong on Creating Extensions
Groups: php.bugs php.doc 
Request: Send a blank email to php-bugs+get-1831@lists.php.net to get a copy of this message
From: yorgo@163.net Operating system: linux PHP version: 4.1.2 PHP Bug Type: Documentation problem Bug description: the sample code have some wrong on Creating Extensions 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 bug report at http://bugs.php.net/?id=15915&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15915&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15915&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15915&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15915&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15915&r=support Expected behavior: http://bugs.php.net/fix.php?id=15915&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15915&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=15915&r=submittedtwice

« previous php.bugs (#1831) next »