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

 ID:                 52436
 Updated by:         srina...@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] srina...@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] paj...@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] srina...@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

Reply via email to