|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-02-14 09:25 UTC] otto dot wyss at orpatec dot ch
Description: ------------ Currently PDO::errorInfo returns an array (SQLSTATE, driver specific code, message) but almost ever only the message is interesting. Therefore I propose to expand the API to add an obtional array index, if present only the indexed information will be returned. The return type probably has to be changed to mixed as well. Current calls without parameter return the current array, future calls i.e. errorInfo (2) will only return the text message as a string. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 13:00:02 2025 UTC |
As of PHP 5.4.0, array dereferencing of function call results is allowed: $pdo->errorInfo()[2] So I think this request is obsolete.