php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34174 Compiling SOAP extension fails (patch included)
Submitted: 2005-08-17 18:02 UTC Modified: 2005-08-17 19:05 UTC
From: mj@php.net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5CVS-2005-08-17 (snap) OS: GNU/Linux
Private report: No CVE-ID: None
 [2005-08-17 18:02 UTC] mj@php.net
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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-17 19:04 UTC] sniper@php.net
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 19:05 UTC] sniper@php.net
Also: You're apparently running a threaded Apache2, I suggest that you switch to using the prefork MPM, ASAP!

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Nov 01 20:00:02 2025 UTC