Bug #52436 [Asn->Csd]: Compile error if systems do not have stdint.h
| From: | srinatar@php.net | Date: | Tue, 27 Jul 2010 21:44:43 +0000 |
| Subject: | Bug #52436 [Asn->Csd]: Compile error if systems do not have stdint.h | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-152858@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52436&edit=1
ID: 52436
Updated by: srinatar@php.net
Reported by: hiropontepocon at gmail dot com
Summary: Compile error if systems do not have stdint.h
-Status: Assigned
+Status: Closed
Type: Bug
Package: Compile Failure
Operating System: Solaris8
PHP Version: 5.2.14
Assigned To: srinatar
Block user comment: N
Previous Comments:
------------------------------------------------------------------------
[2010-07-27 23:42:24] srinatar@php.net
Automatic comment from SVN on behalf of srinatar
Revision: http://svn.php.net/viewvc/?view=revision&revision=301625
Log: - Fixed bug #52436 (Compile error in pcre if systems do not have
stdint.h)
# PCRE's config.h can very well reuse the definitions made available
from
# PHP's configure script output available within php_config.h
------------------------------------------------------------------------
[2010-07-27 19:13:39] hiropontepocon at gmail dot com
> in quick look, patching pcrelib/pcre_internal.h in this way, seems to
help
Patch works fine. Thanks!
By the way, Is the following code correct?
ext/pcre/pcrelib/config.h:
ã»ã»ã»
/* Define to 1 if you have the <stdint.h> header file. */
#ifndef HAVE_STDINT_H
#define HAVE_STDINT_H 1
#endif
------------------------------------------------------------------------
[2010-07-27 17:42:22] pajoye@php.net
Pls apply it as long as it works on linux too :)
------------------------------------------------------------------------
[2010-07-27 17:39:24] hiropontepocon at gmail dot com
php-5.2.13 â OK
php-5.2.14 â Compile Failed
php-5.3.2 â OK
php-5.3.3 â Compile Failed
------------------------------------------------------------------------
[2010-07-27 04:32:04] srinatar@php.net
in quick look, patching pcrelib/pcre_internal.h in this way, seems to
help
--- ext/pcre/pcrelib/pcre_internal.h.ORIG Wed Jun 2 15:31:21
2010
+++ ext/pcre/pcrelib/pcre_internal.h Wed Jun 2 15:38:08 2010
@@ -193,10 +193,10 @@
by "configure". */
#ifdef PHP_WIN32
#include "win32/php_stdint.h"
-#elif HAVE_STDINT_H
-#include <stdint.h>
#elif HAVE_INTTYPES_H
#include <inttypes.h>
+#elif HAVE_STDINT_H
+#include <stdint.h>
#endif
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/bug.php?id=52436
--
Edit this bug report at http://bugs.php.net/bug.php?id=52436&edit=1