php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #72665
Patch 72665-check-alloca.diff revision 2016-07-24 22:26 UTC by michiel at vanbaak dot eu

Patch 72665-check-alloca.diff for mysqlnd_ms Bug #72665

Patch version 2016-07-24 22:26 UTC

Return to Bug #72665 | Download this patch
Patch Revisions:

Developer: michiel@vanbaak.eu

Index: config.m4
===================================================================
--- config.m4	(revision 339708)
+++ config.m4	(working copy)
@@ -51,4 +51,5 @@
   ], [
     AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.])
   ])
+  AC_FUNC_ALLOCA
 fi
Index: fabric/mysqlnd_fabric_strategy_dump.c
===================================================================
--- fabric/mysqlnd_fabric_strategy_dump.c	(revision 339708)
+++ fabric/mysqlnd_fabric_strategy_dump.c	(working copy)
@@ -17,7 +17,9 @@
 */
 
 #include <stddef.h>
+#ifdef HAVE_ALLOCA_H
 #include <alloca.h>
+#endif
 #include <strings.h>
 
 #include <libxml/tree.h>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 16:01:27 2024 UTC