php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #55609
Patch mysqlnd_build_shared.diff revision 2011-09-05 18:25 UTC by johannes@php.net
revision 2011-09-05 18:23 UTC by johannes@php.net
revision 2011-09-05 16:46 UTC by johannes@php.net

Patch mysqlnd_build_shared.diff for MySQL related Bug #55609

Patch version 2011-09-05 18:25 UTC

Return to Bug #55609 | Download this patch
Patch Revisions: 2011-09-05 18:25 UTC | 2011-09-05 18:23 UTC | 2011-09-05 16:46 UTC

Developer: johannes@php.net


 Index: ext/mysqlnd/php_mysqlnd.c
 ===================================================================
 --- ext/mysqlnd/php_mysqlnd.c	(revision 315975)
 +++ ext/mysqlnd/php_mysqlnd.c	(working copy)
 @@ -366,6 +366,11 @@
  };
  /* }}} */
  
 +/* {{{ COMPILE_DL_MYSQLND */
 +#ifdef COMPILE_DL_MYSQLND
 +ZEND_GET_MODULE(mysqlnd)
 +#endif
 +/* }}} */
  
  /*
   * Local variables:
  Index: ext/mysqlnd/config9.m4
  ===================================================================
  --- ext/mysqlnd/config9.m4	(revision 315929)
  +++ ext/mysqlnd/config9.m4	(working copy)


  +if test "$PHP_MYSQLND" != "no" || test "$PHP_MYSQLND_ENABLED" = "yes"; then
     mysqlnd_ps_sources="mysqlnd_ps.c mysqlnd_ps_codec.c"
     mysqlnd_base_sources="mysqlnd.c mysqlnd_alloc.c mysqlnd_bt.c mysqlnd_charset.c mysqlnd_wireprotocol.c \
                      mysqlnd_loaddata.c mysqlnd_net.c \
 @@ -28,7 +31,7 @@
 @@ -28,12 +31,12 @@
     AC_DEFINE([MYSQLND_SSL_SUPPORTED], 1, [Enable SSL support])
   
     mysqlnd_sources="$mysqlnd_base_sources $mysqlnd_ps_sources"
  -  PHP_NEW_EXTENSION(mysqlnd, $mysqlnd_sources, no)
  +  PHP_NEW_EXTENSION(mysqlnd, $mysqlnd_sources, $ext_shared)
     PHP_ADD_BUILD_DIR([ext/mysqlnd], 1)
     PHP_INSTALL_HEADERS([ext/mysqlnd/])
   fi
  
 -if test "$PHP_MYSQLND_ENABLED" = "yes" || test "$PHP_MYSQLI" != "no"; then
 +if test "$PHP_MYSQLND" != "no" || test "$PHP_MYSQLND_ENABLED" = "yes" || test "$PHP_MYSQLI" != "no"; then
    PHP_ADD_BUILD_DIR([ext/mysqlnd], 1)
  
    dnl This creates a file so it has to be after above macros
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Wed Apr 16 16:02:23 2014 UTC