From: [EMAIL PROTECTED] 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", ¶meter) == 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
