Re: Re: 5.3.0 stable release
| From: | jvlad | Date: | Tue, 23 Jun 2009 17:03:23 +0000 |
| Subject: | Re: Re: 5.3.0 stable release | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-44439@lists.php.net to get a copy of this message | ||
>Or it could be possibly fixed by including <stdint.h>, like
>"win32/php_stdin.h" is included on Windows thrus no compilation error
>here. Let me know if the following patch fixes your problem:
>
>Index: php_spl.h
>===================================================================
>RCS file: /repository/php-src/ext/spl/php_spl.h,v
>retrieving revision 1.31
>diff -u -r1.31 php_spl.h
>--- php_spl.h 10 Mar 2009 23:39:38 -0000 1.31
>+++ php_spl.h 23 Jun 2009 16:43:13 -0000
>@@ -21,7 +21,9 @@
>
> #include "php.h"
> #if defined(PHP_WIN32)
>-#include "win32/php_stdint.h"
>+# include "win32/php_stdint.h"
>+#else
>+# include <stdint.h>
> #endif
> #include <stdarg.h>
yep, it fixed the problem.
Also I'd check for HAVE_STDINT_H like below:
#if defined(PHP_WIN32)
#include "win32/php_stdint.h"
+#else
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
#endif
#include <stdarg.h>