[PHP-BUG] Bug #61194 [NEW]: PDO should export compression flag with myslqnd
From: johannes Operating system: * PHP version: trunk-SVN-2012-02-27 (SVN) Package: MySQL related Bug Type: Bug Bug description:PDO should export compression flag with myslqnd Description: pdo_mysql.c has this code: 107 #ifndef PDO_USE_MYSQLND /* ... */ 111 REGISTER_PDO_CLASS_CONST_LONG("MYSQL_ATTR_COMPRESS", (long)PDO_MYSQL_ATTR_COMPRESS); 112 #endif This attribute should be provided for mysqlnd builds, too, as compression is supported in mysqlnd. -- Edit bug report at https://bugs.php.net/bug.php?id=61194&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61194&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61194&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61194&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=61194&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61194&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=61194&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=61194&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=61194&r=needscript Try newer version: https://bugs.php.net/fix.php?id=61194&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=61194&r=support Expected behavior: https://bugs.php.net/fix.php?id=61194&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=61194&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=61194&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=61194&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61194&r=php4 Daylight Savings:https://bugs.php.net/fix.php?id=61194&r=dst IIS Stability: https://bugs.php.net/fix.php?id=61194&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=61194&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=61194&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=61194&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=61194&r=mysqlcfg
Bug #61194 [PATCH]: PDO should export compression flag with myslqnd
Edit report at https://bugs.php.net/bug.php?id=61194&edit=1 ID: 61194 Patch added by: johan...@php.net Reported by:johan...@php.net Summary:PDO should export compression flag with myslqnd Status: Open Type: Bug Package:MySQL related Operating System: * PHP Version:trunk-SVN-2012-02-27 (SVN) Block user comment: N Private report: N New Comment: The following patch has been added/updated: Patch Name: pdo_myslqnd_compression.diff Revision: 1330352223 URL: https://bugs.php.net/patch-display.php?bug=61194&patch=pdo_myslqnd_compression.diff&revision=1330352223 Previous Comments: [2012-02-27 14:16:47] johan...@php.net Description: pdo_mysql.c has this code: 107 #ifndef PDO_USE_MYSQLND /* ... */ 111 REGISTER_PDO_CLASS_CONST_LONG("MYSQL_ATTR_COMPRESS", (long)PDO_MYSQL_ATTR_COMPRESS); 112 #endif This attribute should be provided for mysqlnd builds, too, as compression is supported in mysqlnd. -- Edit this bug report at https://bugs.php.net/bug.php?id=61194&edit=1
Bug #61207 [PATCH]: PDO::nextRowset() after a multi-statement query doesn't always work
Edit report at https://bugs.php.net/bug.php?id=61207&edit=1 ID: 61207 Patch added by: johan...@php.net Reported by:acabal at ucla dot edu Summary:PDO::nextRowset() after a multi-statement query doesn't always work Status: Open Type: Bug Package:PDO related Operating System: Ubuntu 11.10 64-bit PHP Version:5.4.0RC8 Block user comment: N Private report: N New Comment: The following patch has been added/updated: Patch Name: bug61207.diff Revision: 1330518108 URL: https://bugs.php.net/patch-display.php?bug=61207&patch=bug61207.diff&revision=1330518108 Previous Comments: [2012-02-29 05:57:00] acabal at ucla dot edu Oops, a small typo in the linked example script: In the bugged example, I typed $handle1 instead of $handle4 in the do loop. Interestingly the script still produces the same bugged output even with the typo. [2012-02-29 05:45:49] acabal at ucla dot edu Description: After executing a single multi-statement query in PDO in which the statements are INSERT, followed by UPDATE, followed by SELECT, then trying to loop over the results using PDO::nextRowset(), the function returns FALSE (i.e. no more rowsets) after the UPDATE rowset, but before reaching the SELECT rowset. Thus the SELECT rowset is lost. I tried several permutations of multi-statement queries. INSERT, then SELECT, then UPDATE works; SELECT then UPDATE works; UPDATE then SELECT works; only INSERT, then UPDATE, then SELECT fails. See the below code for those examples plus the bugged example. I originally ran in to this problem on PHP 5.3.5, but it still appears in PHP 5.4.0RC8. Test script: --- First create the following MySQL test db/table: create database `test`character set utf8 collate utf8_general_ci; create table `test`.`testtable`( `id` int ); Next check this example code to see the bug in action. There are four examples in the code, the first three work, and the last one is the bug. http://pastebin.com/EKePD6e2 The bug tracker suggested a link for code longer than 20 lines, though I can provide the example script directly in this bug report if that would be helpful. Expected result: Handle 1: Rowset 1 Rowset 2 Results detected Handle 2: Rowset 1 Results detected Handle 3: Rowset 1 Rowset 2 Results detected Handle 4: Rowset 1 Rowset 2 Results detected Actual result: -- Handle 1: Rowset 1 Rowset 2 Results detected Handle 2: Rowset 1 Results detected Handle 3: Rowset 1 Rowset 2 Results detected Handle 4: Rowset 1 -- Edit this bug report at https://bugs.php.net/bug.php?id=61207&edit=1
Bug #64771 [Com]: Error: require_once(): Unable to allocate memory for pool.
Edit report at https://bugs.php.net/bug.php?id=64771&edit=1 ID: 64771 Comment by: johan...@php.net Reported by:tech at neodynamics dot com Summary:Error: require_ÂonceÂ(Â)Â: Unable to allocate memory for pool. Status: Not a bug Type: Bug Package:Apache2 related Operating System: Linux PHP Version:5.3.24 Block user comment: N Private report: N New Comment: "Probably you need" I meant to write ... Previous Comments: [2013-05-07 13:42:46] johan...@php.net Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. This is not a matter of core PHP but APC configuration. Proalyyouneed more/larger shared memory segments for APC or shorter time to live or some filtering or ... see http://php.net/apc.configuration [2013-05-03 11:25:46] tech at neodynamics dot com Description: I have a x-cart 4.4.2 Pro based store having the following configurations- Environment info- Component Status X-Cart version 4.4.2 X-Cart directory/var/www/html/mydomain.com/httpdocs PHP 5.3.10-1ubuntu3.5 GD 2.0 MySQL server5.1.45 MySQL client5.5.29 DB size 415.349Mb Web server Apache/2.2.22 (Ubuntu) Operation systemLinux Perl5.014002Details >> XML parser (expat) found X-Cart directory size Estimate the directory size HTTPS modules Net::SSLeay 1.42 libCURL 7.22.0 Active >> CURL executable curl 7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3 OpenSSL executable OpenSSL 1.0.1 14 Mar 2012 I am facing the following problems and site become down. Test script: --- 1)/home.php raised Error: require_ÂonceÂ(Â)Â: Unable to allocate memory for pool. … called at /var/www/html/mydomain.com/httpdocs/include/func/ func.core.php (70) in x_load called at /var/www/html/mydomain.com/httpdocs/init.php (61) in include_once called at /var/www/html/mydomain.com/httpdocs/preauth.php (69) in require called at /var/www/html/mydomain.com/httpdocs/auth.php (63) in require called at /var/www/html/mydomain.com/httpdocs/home.php (52) 2)/dispatcher.php raised Error: require_ÂonceÂ(Â)Â: Unable to allocate memory for pool. … called at /var/www/html/mydomain.com/httpdocs/include/func/ func.core.php (70) in x_load called at /var/www/html/mydomain.com/httpdocs/init.php (61) in include_once called at /var/www/html/mydomain.com/httpdocs/preauth.php (69) in require called at /var/www/html/mydomain.com/httpdocs/dispatcher.php (50) 3)/adaptive.php raised Error: require_ÂonceÂ(Â)Â: Unable to allocate memory for pool. … called at /var/www/html/mydomain.com/httpdocs/include/func/ func.core.php (70) in x_load called at /var/www/html/mydomain.com/httpdocs/init.php (61) in require called at /var/www/html/mydomain.com/httpdocs/adaptive.php (51) Expected result: My site frequently down and facing error. -- Edit this bug report at https://bugs.php.net/bug.php?id=64771&edit=1
[PHP-BUG] Bug #62146 [NEW]: com_dotnet cannot be built shared
From: johannes Operating system: Windows PHP version: 5.3Git-2012-05-24 (Git) Package: Compile Failure Bug Type: Bug Bug description:com_dotnet cannot be built shared Description: C:\php-sdk\php54\vc9\x86\php-src>nmake Microsoft (R) Program Maintenance Utility Version 9.00.21022.08 Copyright (C) Microsoft Corporation. All rights reserved. Recreating build dirs com_com.c com_dotnet.c com_extension.c com_handlers.c com_iterator.c com_misc.c c:\php-sdk\php54\vc9\x86\php-src\ext\com_dotnet\com_misc.c(47) : error C2491: 'php_com_wrap_dispatch' : definition of dllimport function not allowed c:\php-sdk\php54\vc9\x86\php-src\ext\com_dotnet\com_misc.c(70) : error C2491: 'php_com_wrap_variant' : definition of dllimport function not allowed c:\php-sdk\php54\vc9\x86\php-src\ext\com_dotnet\com_misc.c(96) : error C2491: 'php_com_safearray_get_elem' : definition of dllimport function not allowed NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\Bin\cl.exe"' : return code '0x2' Stop. -- Edit bug report at https://bugs.php.net/bug.php?id=62146&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62146&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62146&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62146&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=62146&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62146&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=62146&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=62146&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=62146&r=needscript Try newer version: https://bugs.php.net/fix.php?id=62146&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=62146&r=support Expected behavior: https://bugs.php.net/fix.php?id=62146&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=62146&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=62146&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=62146&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62146&r=php4 Daylight Savings:https://bugs.php.net/fix.php?id=62146&r=dst IIS Stability: https://bugs.php.net/fix.php?id=62146&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=62146&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=62146&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=62146&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=62146&r=mysqlcfg
[PHP-BUG] Req #53878 [NEW]: Interactive shell should work with shared readline extension
From: johannes Operating system: * PHP version: trunk-SVN-2011-01-29 (SVN) Package: CGI related Bug Type: Feature/Change Request Bug description:Interactive shell should work with shared readline extension Description: The interactive shell (-a) should also work when the readline extension is compiled as shared object. This an be done by introducing a hook in the cli SAPI. An issue is that `php -h` can't give a proper indication about the availability as we'd have to startup PHP first. I assume we can keep the compile time decision there. Test script: --- ./configure --with-readline=shared ./sapi/cli/php -dextension=modules/readline.so -a Expected result: php > -- Edit bug report at http://bugs.php.net/bug.php?id=53878&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53878&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53878&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53878&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=53878&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53878&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=53878&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=53878&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=53878&r=needscript Try newer version: http://bugs.php.net/fix.php?id=53878&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=53878&r=support Expected behavior: http://bugs.php.net/fix.php?id=53878&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=53878&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=53878&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=53878&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53878&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=53878&r=dst IIS Stability: http://bugs.php.net/fix.php?id=53878&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=53878&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=53878&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=53878&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=53878&r=mysqlcfg
[PHP-BUG] Bug #55550 [NEW]: mysql.trace_mode miscounts result sets
From: johannes Operating system: * PHP version: 5.4SVN-2011-08-31 (SVN) Package: MySQL related Bug Type: Bug Bug description:mysql.trace_mode miscounts result sets Description: When usin mysql_list_dbs(), mysql_list_tables(), mysql_list_fields() or mysql_list_processes() and mysql.trace_mode is enabled a wrong amount of remaining result sets will be reported. Test script: --- ext/mysql/tests/mysql_deprecated_api.phpt Expected result: done! Actual result: -- Warning: Unknown: 4294967295 result set(s)not freed. Use mysql_free_result to free result sets which were requested using mysql_query() -- Edit bug report at https://bugs.php.net/bug.php?id=0&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=0&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=0&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=0&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=0&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=0&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=0&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=0&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=0&r=needscript Try newer version: https://bugs.php.net/fix.php?id=0&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=0&r=support Expected behavior: https://bugs.php.net/fix.php?id=0&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=0&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=0&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=0&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=0&r=php4 Daylight Savings:https://bugs.php.net/fix.php?id=0&r=dst IIS Stability: https://bugs.php.net/fix.php?id=0&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=0&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=0&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=0&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=0&r=mysqlcfg
[PHP-BUG] Req #55609 [NEW]: mysqlnd cannot be built shared
From: johannes Operating system: * PHP version: trunk-SVN-2011-09-05 (SVN) Package: MySQL related Bug Type: Feature/Change Request Bug description:mysqlnd cannot be built shared Description: When PHP is built with MySQL support usinge mysqlnd the mysqlnd module will always be compiled statically into PHP. mysqlnd can be enabled or disabled but not be built shared. Test script: --- ./configure --with-mysql=mysqlnd,shared \ --with-mysqli=mysqlnd,shared \ --with-pdo-mysql=mysqlnd,shared make Expected result: Option to build mysqlnd shared. Actual result: -- A mysqlnd.so should be created during make. -- Edit bug report at https://bugs.php.net/bug.php?id=55609&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55609&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55609&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55609&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55609&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55609&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55609&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55609&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55609&r=needscript Try newer version: https://bugs.php.net/fix.php?id=55609&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55609&r=support Expected behavior: https://bugs.php.net/fix.php?id=55609&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55609&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55609&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55609&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55609&r=php4 Daylight Savings:https://bugs.php.net/fix.php?id=55609&r=dst IIS Stability: https://bugs.php.net/fix.php?id=55609&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55609&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55609&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55609&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55609&r=mysqlcfg
Req #55609 [PATCH]: mysqlnd cannot be built shared
Edit report at https://bugs.php.net/bug.php?id=55609&edit=1 ID: 55609 Patch added by: johan...@php.net Reported by:johan...@php.net Summary:mysqlnd cannot be built shared Status: Open Type: Feature/Change Request Package:MySQL related Operating System: * PHP Version:trunk-SVN-2011-09-05 (SVN) Block user comment: N Private report: N New Comment: The following patch has been added/updated: Patch Name: mysqlnd_build_shared.diff Revision: 1315241207 URL: https://bugs.php.net/patch-display.php?bug=55609&patch=mysqlnd_build_shared.diff&revision=1315241207 Previous Comments: [2011-09-05 16:45:54] johan...@php.net Description: When PHP is built with MySQL support usinge mysqlnd the mysqlnd module will always be compiled statically into PHP. mysqlnd can be enabled or disabled but not be built shared. Test script: --- ./configure --with-mysql=mysqlnd,shared \ --with-mysqli=mysqlnd,shared \ --with-pdo-mysql=mysqlnd,shared make Expected result: Option to build mysqlnd shared. Actual result: -- A mysqlnd.so should be created during make. -- Edit this bug report at https://bugs.php.net/bug.php?id=55609&edit=1
Req #55609 [PATCH]: mysqlnd cannot be built shared
Edit report at https://bugs.php.net/bug.php?id=55609&edit=1 ID: 55609 Patch added by: johan...@php.net Reported by:johan...@php.net Summary:mysqlnd cannot be built shared Status: Assigned Type: Feature/Change Request Package:MySQL related Operating System: * PHP Version:trunk-SVN-2011-09-05 (SVN) Assigned To:mysql Block user comment: N Private report: N New Comment: The following patch has been added/updated: Patch Name: mysqlnd_build_shared.diff Revision: 1315247030 URL: https://bugs.php.net/patch-display.php?bug=55609&patch=mysqlnd_build_shared.diff&revision=1315247030 Previous Comments: [2011-09-05 16:48:49] johan...@php.net The attached patch adds an option --enable-mysqlnd which can be used like any other normal configure option. Therefore mysqlnd could be built even when no other MySQL extension was activated. It's also possible to use --enable-mysqlnd=shared After applying this patch myslqnd won't compile shared due to issues in mysqlnd_compat.h [2011-09-05 16:46:47] johan...@php.net The following patch has been added/updated: Patch Name: mysqlnd_build_shared.diff Revision: 1315241207 URL: https://bugs.php.net/patch-display.php?bug=55609&patch=mysqlnd_build_shared.diff&revision=1315241207 ---- [2011-09-05 16:45:54] johan...@php.net Description: When PHP is built with MySQL support usinge mysqlnd the mysqlnd module will always be compiled statically into PHP. mysqlnd can be enabled or disabled but not be built shared. Test script: --- ./configure --with-mysql=mysqlnd,shared \ --with-mysqli=mysqlnd,shared \ --with-pdo-mysql=mysqlnd,shared make Expected result: Option to build mysqlnd shared. Actual result: -- A mysqlnd.so should be created during make. -- Edit this bug report at https://bugs.php.net/bug.php?id=55609&edit=1
Req #55609 [PATCH]: mysqlnd cannot be built shared
Edit report at https://bugs.php.net/bug.php?id=55609&edit=1 ID: 55609 Patch added by: johan...@php.net Reported by:johan...@php.net Summary:mysqlnd cannot be built shared Status: Assigned Type: Feature/Change Request Package:MySQL related Operating System: * PHP Version:trunk-SVN-2011-09-05 (SVN) Assigned To:mysql Block user comment: N Private report: N New Comment: The following patch has been added/updated: Patch Name: mysqlnd_build_shared.diff Revision: 1315247101 URL: https://bugs.php.net/patch-display.php?bug=55609&patch=mysqlnd_build_shared.diff&revision=1315247101 Previous Comments: [2011-09-05 18:23:50] johan...@php.net The following patch has been added/updated: Patch Name: mysqlnd_build_shared.diff Revision: 1315247030 URL: https://bugs.php.net/patch-display.php?bug=55609&patch=mysqlnd_build_shared.diff&revision=1315247030 [2011-09-05 16:48:49] johan...@php.net The attached patch adds an option --enable-mysqlnd which can be used like any other normal configure option. Therefore mysqlnd could be built even when no other MySQL extension was activated. It's also possible to use --enable-mysqlnd=shared After applying this patch myslqnd won't compile shared due to issues in mysqlnd_compat.h ---- [2011-09-05 16:46:47] johan...@php.net The following patch has been added/updated: Patch Name: mysqlnd_build_shared.diff Revision: 1315241207 URL: https://bugs.php.net/patch-display.php?bug=55609&patch=mysqlnd_build_shared.diff&revision=1315241207 ---- [2011-09-05 16:45:54] johan...@php.net Description: When PHP is built with MySQL support usinge mysqlnd the mysqlnd module will always be compiled statically into PHP. mysqlnd can be enabled or disabled but not be built shared. Test script: --- ./configure --with-mysql=mysqlnd,shared \ --with-mysqli=mysqlnd,shared \ --with-pdo-mysql=mysqlnd,shared make Expected result: Option to build mysqlnd shared. Actual result: -- A mysqlnd.so should be created during make. -- Edit this bug report at https://bugs.php.net/bug.php?id=55609&edit=1
Bug #55859 [PATCH]: mysqli->stat property access gives error
Edit report at https://bugs.php.net/bug.php?id=55859&edit=1 ID: 55859 Patch added by: johan...@php.net Reported by:u...@php.net Summary:mysqli->stat property access gives error Status: Open Type: Bug Package:MySQLi related PHP Version:5.4SVN-2011-10-06 (SVN) Block user comment: N Private report: N New Comment: The following patch has been added/updated: Patch Name: bug55859.diff Revision: 1317900174 URL: https://bugs.php.net/patch-display.php?bug=55859&patch=bug55859.diff&revision=1317900174 Previous Comments: [2011-10-06 10:26:31] u...@php.net Description: sapi/cli/php -r '$mysqli = new mysqli("localhost", "root", "", "test"); var_dump(mysqli_stat($mysqli)); var_dump($mysqli->stat);' string(140) "Uptime: 2059747 Threads: 1 Questions: 126152 Slow queries: 0 Opens: 6377 Flush tables: 1 Open tables: 18 Queries per second avg: 0.61" PHP Notice: Undefined property: mysqli::$stat in Command line code on line 1 NULL According to the docs there should be mysqli->stat, http://www.php.net/manual/en/mysqli.stat.php Test script: --- sapi/cli/php -r '$mysqli = new mysqli("localhost", "root", "", "test"); var_dump(mysqli_stat($mysqli)); var_dump($mysqli->stat);' string(140) "Uptime: 2059747 Threads: 1 Questions: 126152 Slow queries: 0 Opens: 6377 Flush tables: 1 Open tables: 18 Queries per second avg: 0.61" PHP Notice: Undefined property: mysqli::$stat in Command line code on line 1 NULL Expected result: Fix code or docs. -- Edit this bug report at https://bugs.php.net/bug.php?id=55859&edit=1
Bug #60840 [PATCH]: undefined symbol: mysqlnd_debug_std_no_trace_funcs
Edit report at https://bugs.php.net/bug.php?id=60840&edit=1 ID: 60840 Patch added by: johan...@php.net Reported by:public at grik dot net Summary:undefined symbol: mysqlnd_debug_std_no_trace_funcs Status: Assigned Type: Bug Package:PDO related Operating System: linux PHP Version:5.4SVN-2012-01-22 (snap) Assigned To:mysql Block user comment: N Private report: N New Comment: The following patch has been added/updated: Patch Name: bug60840.diff Revision: 1361316955 URL: https://bugs.php.net/patch-display.php?bug=60840&patch=bug60840.diff&revision=1361316955 Previous Comments: [2012-10-29 16:03:05] johan...@php.net public at grik dot net, the issue is when building the extensions shared we can't decide what to do with mysqlnd, should that be built-in or shared, too? Or maybe the user has a different mysqlnd? - We leave this to the user. [2012-06-14 10:03:03] public at grik dot net Johannes, thanks for the response, but according to http://php.net/ChangeLog-5.php "ext/mysql, mysqli and pdo_mysql now use mysqlnd by default." in 5.4 So the issues are: 1. Why should we explicitly enable the feature used by default? 2. How can we NOT use mysqlnd in debug mode, if it issues an error for missing mysqlnd_debug_std_no_trace_funcs? [2012-06-14 09:57:57] fausten at pw-internet dot de Hi, the package is going to build with mysqlnd by default: # cd /usr/ports/databases/php5-pdo_mysql && make config MYSQLND - Use MySQL Native Driver (Is selected by default) # make install clean After installation: The following line has been added to your /usr/local/etc/php/extensions.ini configuration file to automatically load the installed extension: extension=pdo_mysql.so So the extension sholud be loaded after restarting php. ---- [2012-06-14 09:41:44] johan...@php.net When building the MySQL extensions you explicitly have to enable mysqlnd. i.e. --enable-mysqlnd=shared. If you build mysqlnd shared you have to remember to load it, too. I will look whether the build system can be made smarter and at least warn. I don't want to make the decision in there whether to build shared or static. If I'd make that decision I'd default to static mysqlnd. [2012-06-14 09:32:56] fausten at pw-internet dot de Hi, same problem here: # cd /usr/ports/database/php5-pdo_mysql && make install clean Build is successfully. % php foo.php PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525-debug/pdo_mysql.so' - /usr/local/lib/php/20100525-debug/pdo_mysql.so: Undefined symbol "mysqlnd_debug_std_no_trace_funcs" in Unknown on line 0 OS: FreeBSD 9.0 amd64 PHP: 5.4.3 builded from ports (# cd /usr/ports/lang/php5 %% make install clean) 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 https://bugs.php.net/bug.php?id=60840 -- Edit this bug report at https://bugs.php.net/bug.php?id=60840&edit=1