#44155 [NEW]: pdo_drivers() not documented
| From: | uwendel at mysql dot com | Date: | Mon, 18 Feb 2008 18:32:04 +0000 |
| Subject: | #44155 [NEW]: pdo_drivers() not documented | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-525@lists.php.net to get a copy of this message | ||
From: uwendel at mysql dot com
Operating system: Linux
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: pdo_drivers() not documented
Description:
------------
pdo_drivers() is not documented as it seems,
http://de.php.net/manual-lookup.php?pattern=pdo_drivers&lang=en
Please document or remove it.
ext/pdo/pdo.c
/* {{{ proto array pdo_drivers()
Return array of available PDO drivers */
PHP_FUNCTION(pdo_drivers)
{
HashPosition pos;
pdo_driver_t **pdriver;
array_init(return_value);
zend_hash_internal_pointer_reset_ex(&pdo_driver_hash, &pos);
while (SUCCESS == zend_hash_get_current_data_ex(&pdo_driver_hash,
(void**)&pdriver, &pos)) {
add_next_index_stringl(return_value, (char*)(*pdriver)->driver_name,
(*pdriver)->driver_name_len, 1);
zend_hash_move_forward_ex(&pdo_driver_hash, &pos);
}
}
/* }}} */
Reproduce code:
---------------
nixnutz@ulflinux:~/php53> sapi/cli/php -r "var_dump(pdo_drivers());"
array(3) {
[0]=>
string(7) "sqlite2"
[1]=>
string(6) "sqlite"
[2]=>
string(5) "mysql"
}
Expected result:
----------------
Well, result is fine. It should be documented that's all.
--
Edit bug report at http://bugs.php.net/?id=44155&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44155&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44155&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44155&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44155&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=44155&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44155&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44155&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44155&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44155&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44155&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=44155&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=44155&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44155&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44155&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44155&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44155&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44155&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44155&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44155&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44155&r=mysqlcfg