|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-07-01 11:48 UTC] aharvey@php.net
-Status: Open
+Status: Feedback
[2011-07-01 11:48 UTC] aharvey@php.net
[2011-07-03 00:06 UTC] 1000235409 at smail dot shnu dot edu dot cn
-Status: Feedback
+Status: Open
[2011-07-03 00:06 UTC] 1000235409 at smail dot shnu dot edu dot cn
[2011-07-03 10:29 UTC] felipe@php.net
[2011-07-03 11:21 UTC] 1000235409 at smail dot shnu dot edu dot cn
[2011-07-05 08:44 UTC] johannes@php.net
-Status: Open
+Status: Feedback
[2011-07-05 08:44 UTC] johannes@php.net
[2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 13:00:02 2025 UTC |
Description: ------------ Calling mysqli::get_attr() under Mac OS X always leads php to crash with exit code 139, even after receiving true with calling mysqli::set_attr() before. Proved under PHP-CGI 5.3.3 with MySQL 5.1.44. This situation will not happen under Windows and Linux (at least Ubuntu 10.10). Test script: --------------- $conn=new mysqli('localhost', 'root', '', 'test', 3306, '/Applications/XAMPP/xamppfiles/var/mysql/mysql.sock'); $stmt=$conn->stmt_init(); $stmt->prepare('select 1+1'); $a=$stmt->attr_set(MYSQLI_STMT_ATTR_CURSOR_TYPE,MYSQLI_CURSOR_TYPE_READ_ONLY); var_dump($a); //true $stmt->attr_get(MYSQLI_STMT_ATTR_CURSOR_TYPE); //php crashed with exit value 139. $stmt->execute(); echo $stmt->attr_get(MYSQLI_STMT_ATTR_CURSOR_TYPE);// ...or, put that code here, and the same problem happens. echo 'SUCC'; Expected result: ---------------- SUCC Actual result: -------------- *SIMPLY CRASHED*