ID:               34174
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Closed
 Bug Type:         Compile Failure
 Operating System: GNU/Linux
 PHP Version:      5CVS-2005-08-17 (snap)
 New Comment:

Also: You're apparently running a threaded Apache2, I suggest that you
switch to using the prefork MPM, ASAP!



Previous Comments:
------------------------------------------------------------------------

[2005-08-17 19:04:57] [EMAIL PROTECTED]

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

btw. Your patch is not the way to fix this..


------------------------------------------------------------------------

[2005-08-17 18:02:05] [EMAIL PROTECTED]

Description:
------------
Compiling PHP with the SOAP extension (using GCC 4.x) fails with the
following error message:

/home/martin/src/php5-200508171430/ext/soap/soap.c: In function
'verify_soap_headers_array':
/home/martin/src/php5-200508171430/ext/soap/soap.c:2470: error:
'tsrm_ls' undeclared (first use in this function)
/home/martin/src/php5-200508171430/ext/soap/soap.c:2470: error: (Each
undeclared identifier is reported only once
/home/martin/src/php5-200508171430/ext/soap/soap.c:2470: error: for
each function it appears in.)

The following patch seems to fix this:

Index: soap.c
===================================================================
RCS file: /repository/php-src/ext/soap/soap.c,v
retrieving revision 1.158
diff -u -r1.158 soap.c
--- soap.c      17 Aug 2005 07:04:50 -0000      1.158
+++ soap.c      17 Aug 2005 15:58:52 -0000
@@ -30,6 +30,10 @@
 #  include "zend_exceptions.h"
 #endif
 
+#ifdef ZTS
+static void ***tsrm_ls;
+#endif
+
 static int le_sdl = 0;
 int le_url = 0;
 static int le_service = 0;


Reproduce code:
---------------
Compile PHP with the following configure options:

./configure --with-zlib --disable-cgi --with-apxs2=/usr/bin/apxs2
--disable-pear --with-mysql --enable-readline --with-curl --enable-soap
--with-xmlrpc



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=34174&edit=1

Reply via email to