From:             
Operating system: any
PHP version:      5.3SVN-2010-08-17 (SVN)
Package:          MySQL related
Bug Type:         Feature/Change Request
Bug description:PDO::MYSQL_ATTR_MAX_BUFFER_SIZE not supported in mysqlnd

Description:
------------
Seems as if mysqlnd driver doesn't support PDO::MYSQL_ATTR_MAX_BUFFER_SIZE


constant.



In pdo_mysql.c (from svn 

http://svn.php.net/repository/php/php-

src/branches/PHP_5_3/ext/pdo_mysql/pdo_mysql.c), I can see:



#ifndef PDO_USE_MYSQLND

        REGISTER_PDO_CLASS_CONST_LONG("MYSQL_ATTR_MAX_BUFFER_SIZE", 

(long)PDO_MYSQL_ATTR_MAX_BUFFER_SIZE);

...

#endif



So, this constant (and some others) are only defined when mysqlnd isn't the


active driver.

Test script:
---------------
echo PDO::MYSQL_ATTR_MAX_BUFFER_SIZE;

Expected result:
----------------
Output 1005

Actual result:
--------------
Fatal error: Undefined class constant 'MYSQL_ATTR_MAX_BUFFER_SIZE' in php
shell 

code on line 1

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

Reply via email to