php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4462 CPDFlib module does not set the entry module ptr correctly
Submitted: 2000-05-15 23:29 UTC Modified: 2000-05-16 06:18 UTC
From: landon at bradshaw dot org Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0 Release Candidate 2 OS: Linux
Private report: No CVE-ID: None
 [2000-05-15 23:29 UTC] landon at bradshaw dot org
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)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-16 06:18 UTC] sas at cvs dot php dot net
This has been fixed in CVS. Thanks for your report.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Jun 29 14:00:01 2026 UTC