MapServer / MapServer-import

3 stars 2 forks source link

Windows build of php_mapscript broken in 4.10 #1872

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: dmorissette Date: 2006/08/22 - 21:53

The Windows build of php_mapscript 4.10.0-beta1 was breaking because of the
empty ZEND_BEGIN_MODULE_GLOBALS(phpms)/ZEND_END_MODULE_GLOBALS(phpms) block
(caused by bug 1322).
tbonfort commented 12 years ago

Author: dmorissette Date: 2006/08/22 - 21:55

Fixed in CVS by commenting out that block in a similar way to the way it is in
template files generated by the php extension skeleton scripts:

/* 
 * Declare any global variables you may need between the BEGIN
 * and END macros here after uncommenting the following lines and the 
 * ZEND_INIT_MODULE_GLOBALS() call in PHP_MINIT_FUNCTION() )
 */

/*
ZEND_BEGIN_MODULE_GLOBALS(phpms)
    int   global_value;
    char *global_string;
ZEND_END_MODULE_GLOBALS(phpms)

ZEND_DECLARE_MODULE_GLOBALS(phpms)

static void phpms_init_globals(zend_phpms_globals *phpms_globals)
{
    phpms_globals->global_value = 0;
    phpms_globals->global_string = NULL;
}
*/