PHP 4.0 Bug #4462: CPDFlib module does not set the entry module ptr correctly
| From: | landon at bradshaw dot org | Date: | Tue, 16 May 2000 03:29:54 +0000 |
| Subject: | PHP 4.0 Bug #4462: CPDFlib module does not set the entry module ptr correctly | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-18821@lists.php.net to get a copy of this message | ||
From: landon@bradshaw.org
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)