php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48636 compilation broken due missing llabs() inline
Submitted: 2009-06-22 01:46 UTC Modified: 2009-06-22 13:43 UTC
From: guenter@php.net Assigned:
Status: Closed Package: Date/time related
PHP Version: 5.2.10 OS: NetWare
Private report: No CVE-ID:
 [2009-06-22 01:46 UTC] guenter@php.net
Description:
------------
date/php_date.c needs another inline for NetWare Metrowerks compiler:

--- php_date.c.orig	Sat Jun 06 00:34:30 2009
+++ php_date.c	Mon Jun 22 02:44:27 2009
@@ -38,6 +38,10 @@
 static __inline __int64_t llabs( __int64_t i ) { return i >= 0 ? i : -i; }
 #endif
 
+#if defined(NETWARE) && defined(__MWERKS__)
+static __inline long long llabs( long long i ) { return i >= 0 ? i : -i; }
+#endif
+
 /* {{{ arginfo */
 static
 ZEND_BEGIN_ARG_INFO_EX(arginfo_date, 0, 0, 1)




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-06-22 13:43 UTC] iliaa@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.


 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Wed Apr 16 10:02:09 2014 UTC