[PHP-DEV] PHP 4.0 Bug #4462: CPDFlib module does not set the entry module ptr correctly From: landon <email protected>
Date: 05/15/00

From: landon <email protected>
Operating system: Linux
PHP version: 4.0 Release Candidate 2
PHP Bug Type: Compile Failure
Bug description: CPDFlib module does not set the entry module ptr correctly

This is the error produced from the normal 'make':
internal_functions.c:68: `phpext_cpdflib_ptr' undeclared here (not in a function)
internal_functions.c:68: initializer element is not constant
internal_functions.c:68: (near initialization for `php_builtin_extensions[13]')
make[1]: *** [internal_functions.lo] Error 1
make[1]: Leaving directory `/usr/src/php-4.0RC2'
make: *** [all-recursive] Error 1

The reason for this is line 122 of ./ext/cpdflib/php_cpdf.h which currently has the following:
#define phpext_cpdf_ptr cpdf_module_ptr

But which should have the following code:
#define phpext_cpdflib_ptr cpdf_module_ptr

Because in internal_functions.c it is inserted into the array as the second definition and not the first.

(Note: Please see bug #4458 for the previous bug with CPDFlib module, this modifies the directory that the module lives in)

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>