[PHP-DOC] Bug #15915 Updated: the sample code have some wrong on Creating Extensions From: hholzgra <email protected>
Date: 06/17/02

 ID: 15915
 Updated by: hholzgra <email protected>
 Reported By: yorgo <email protected>
-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 <email protected>

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