php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58088 compilation breaks with CodeWarrior compiler
Submitted: 2008-03-08 10:08 UTC Modified: 2008-03-17 14:11 UTC
From: guenter@php.net Assigned:
Status: Closed Package: memcache (PECL)
PHP Version: 5_2 CVS-2008-03-08 OS: NetWare
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: guenter@php.net
New email:
PHP Version: OS:

 

 [2008-03-08 10:08 UTC] guenter@php.net
Description:
------------
Stupid CodeWarrior compiler which we use to compile for NetWare platform doesnt handle line 1031 of memcache.c:
zval **params[5] = {&host, &tcp_port, &udp_port, &error, &errnum};
it seems that the compiler is too stupid to take vars here, and breaks compilation. Can you perhaps use single assignment as before?

--- memcache.c.orig	Tue Feb 05 20:46:52 2008
+++ memcache.c	Sat Mar 08 15:59:22 2008
@@ -1028,7 +1028,13 @@
 	if (mmc->failure_callback != NULL) {
 		zval *retval = NULL;
 		zval *host, *tcp_port, *udp_port, *error, *errnum;
-		zval **params[5] = {&host, &tcp_port, &udp_port, &error, &errnum};
+		zval **params[5];
+
+		params[0] = &host;
+		params[1] = &tcp_port;
+		params[2] = &udp_port;
+		params[3] = &error;
+		params[4] = &errnum;
 
 		MAKE_STD_ZVAL(host);
 		MAKE_STD_ZVAL(tcp_port); MAKE_STD_ZVAL(udp_port);

thanks, G?nter.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-17 14:11 UTC] mikael at synd dot info
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 02:01:36 2025 UTC