Re: mysqli func param order

From: Date: Thu, 04 Mar 2004 16:30:22 +0000
Subject: Re: mysqli func param order
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-8372@lists.php.net to get a copy of this message
> hi, > > I'am a little astonished concerning the modify function parameter order. > mysqli_query ( object link, string query [, int resultmode]) for example > expect the object link after the sql query. in the old ext/mysql it is > completly reversed. I think this is bad for a possible migration from > ext/mysql to ext/mysqli. > > is it possible to change this before release mysqli as stable? No, why do you want to do so? You will run in exactly the same problems as in ext/mysql: It will never be possible to add an additional parameter in future versions when mysqli api changes without breaking BC. Also using a default link is bad if you need more than one connection. Georg

« previous php.internals (#8372) next »