Hi Dinh, The class name is actually uppercase internally, per PECL standards. PHP doesn't enforce case on class names, and this was just the style of the author. For example:
<?php $d= new drizzle(); $d= new Drizzle(); $d= new DRIZZLE(); $d= new dRiZzlE(); $d= new bad_class(); ?> When run: Fatal error: Class 'bad_class' not found in /home/eday/test.php on line 6 As you can see, the class names are case insensitive. -Eric On Wed, Jul 15, 2009 at 02:44:37PM +0700, Dinh wrote: > Hi all, > > I just read an article that introduced Drizzle PHP extension > http://devzone.zend.com/article/4793-Getting-Started-with-Drizzle-and-PHP > to PHP community. However, the line > > // create drizzle object > $drizzle = new drizzle(); > > shows that Drizzle coding convention is the same to MySQLi PHP extension > where class name is lower case. It breaks PHP PECL coding standard which > requires CamelCase for class names, camelCase for public method and > property names. Any thought? > > Regards, > > Dinh > > -- > -------------- > http://groups.google.com/group/phpvietnam > _______________________________________________ > Mailing list: https://launchpad.net/~drizzle-discuss > Post to : [email protected] > Unsubscribe : https://launchpad.net/~drizzle-discuss > More help : https://help.launchpad.net/ListHelp _______________________________________________ Mailing list: https://launchpad.net/~drizzle-discuss Post to : [email protected] Unsubscribe : https://launchpad.net/~drizzle-discuss More help : https://help.launchpad.net/ListHelp

