php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35770 inconsistent method naming PDO::exec and PDOStatement::execute
Submitted: 2005-12-22 11:10 UTC Modified: 2005-12-22 15:38 UTC
From: fh at ez dot no Assigned:
Status: Wont fix Package: PDO related
PHP Version: 5.1.1 OS: linux - gentoo
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
36 - 34 = ?
Subscribe to this entry?

 
 [2005-12-22 11:10 UTC] fh at ez dot no
Description:
------------
The methods should either be named the same or given names 
that separate them more clearly. 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-22 11:34 UTC] sniper@php.net
Assigned to the maintainer.
 [2005-12-22 14:18 UTC] iliaa@php.net
too late to change this for BC reasons
 [2005-12-22 14:28 UTC] fh at ez dot no
You have aliases for this. At the very least fix this in 
PHP 6. 
Derick also noted another inconsistency in PDO: 
13:15:25] <Derick> they also have beginTransaction, commit 
and rollback
 [2005-12-22 15:38 UTC] wez@php.net
They do different things; having the same name for these is not clever, and we're not going to change it.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 11:01:30 2024 UTC