From:             
Operating system: Mac OS X 10.6.7
PHP version:      Irrelevant
Package:          MySQLi related
Bug Type:         Bug
Bug description:Calling mysqli::get_attr() leads php to crash.

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*

-- 
Edit bug report at https://bugs.php.net/bug.php?id=55104&edit=1
-- 
Try a snapshot (PHP 5.2):            
https://bugs.php.net/fix.php?id=55104&r=trysnapshot52
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=55104&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=55104&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=55104&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=55104&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=55104&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=55104&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=55104&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=55104&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=55104&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=55104&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=55104&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=55104&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=55104&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=55104&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=55104&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=55104&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=55104&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=55104&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=55104&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=55104&r=mysqlcfg
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=55104&r=trysnapshot54

Reply via email to