php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7612 some compile errors and it's patch
Submitted: 2000-11-03 04:19 UTC Modified: 2000-12-01 04:52 UTC
From: bushi at mizi dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.3pl1 OS: Linux 2.2.17 , MIZI LinuxOS (Kor
Private report: No CVE-ID: None
 [2000-11-03 04:19 UTC] bushi at mizi dot com
glibc 2.1.2, gcc 2.95.2

sorry my poor english.

 "#define ZST 1" be inserted into "php_config.h"
when configure with "--with-servlet".
 And, it cause compile errors on some extension modules 
such as php-pam-0.3.1, swf and gd.


----------------------cut here------------------------------------
--- php-4.0.3pl1/ext/pam/pam.c.orig     Sat Nov  4 14:50:07 2000
+++ php-4.0.3pl1/ext/pam/pam.c  Sat Nov  4 14:50:15 2000
@@ -774,6 +774,7 @@
 {
        int count;
 #ifdef ZEND_VERSION
+       CLS_D;
        zval *conv_retval, *msg_pval, *resp_pval;
        zval **args[2];
 #else
--- php-4.0.3pl1/ext/gd/gd.c.orig       Sat Nov  4 12:41:07 2000
+++ php-4.0.3pl1/ext/gd/gd.c    Sat Nov  4 12:41:18 2000
@@ -849,6 +849,7 @@
 #if HAVE_LIBGD15
        zval **dstim, **srcim;
        gdImagePtr dst, src;
+       GDLS_FETCH();

        if (ZEND_NUM_ARGS() != 2 ||
                zend_get_parameters_ex(2, &dstim, &srcim) == FAILURE) {
--- php-4.0.3pl1/ext/swf/php_swf.h.orig Sat Nov  4 15:05:45 2000
+++ php-4.0.3pl1/ext/swf/php_swf.h      Sat Nov  4 15:04:27 2000
@@ -106,8 +106,10 @@
 } php_swf_globals;

 #ifdef ZTS
+#define SWFLS_D php_swf_globals *swf_globals
 #define SWFG(v) (swf_globals->v)
-#define SWFLS_FETCH() php_swf_globals *swf_globals = ts_resource(gd_swf_id)
+#define SWFLS_FETCH() php_swf_globals *swf_globals = ts_resource(swf_globals_id)
 #else
+#define SWFLS_D
 #define SWFG(v) (swf_globals.v)
 #define SWFLS_FETCH()
--- php-4.0.3pl1/ext/swf/swf.c.orig     Sat Nov  4 14:56:51 2000
+++ php-4.0.3pl1/ext/swf/swf.c  Sat Nov  4 15:04:55 2000
@@ -31,7 +31,7 @@
 #ifdef ZTS
 int swf_globals_id;
 #else
-php_swf_globals swf_globals;
+ZEND_API php_swf_globals swf_globals;
 #endif


@@ -156,6 +156,8 @@

 PHP_RINIT_FUNCTION(swf)
 {
+       SWFLS_D;
+
        SWFG(use_file) = 0;

        return SUCCESS;
------------------------cut here---------------------------------------

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-01 04:52 UTC] andi@php.net
We don't maintain the PAM module but I updated swf and gd was already fixed. Can you please grab the latest CVS or snapshot (in a few hours) and see if you still have these problems?
Thanks,
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Jun 28 12:00:02 2026 UTC