Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.12.2

Bug #16859 DB_mysql::quote() should be compatible with that of DB_common::quote()
Submitted: 2009-12-01 17:12 UTC
From: suddhashil2000 Assigned:
Status: Wont fix Package: DB (version Unknown)
PHP Version: 5.2.1 OS: Unix
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


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 !
Your email address:
MUST BE VALID
Solve the problem : 42 - 15 = ?

 
 [2009-12-01 17:12 UTC] suddhashil2000 (Suddhashil Ghosh)
Description: ------------ Hi, The site was running fine. But when I changed the hosting it started to give error like: ERRNO: 2048 TEXT: Declaration of DB_mysql::quote() should be compatible with that of DB_common::quote() LOCATION: /var/www/html/locatebands.com/libs/PEAR/DB/mysql.php, line 48, at December 1, 2009, 5:36 am Showing backtrace: include_once("/var/www/html/locatebands.com/libs/PEAR/DB/mysql.php") # line 376, file: /var/www/html/locatebands.com/libs/PEAR/DB.php DB.connect("mysql://admin:2ncFT5C4@localhost/locateb_users") # line 17, file: /var/www/html/locatebands.com/include/database.php DbManager.DbManager("mysql://admin:2ncFT5C4@localhost/locateb_users") # line 19, file: /var/www/html/locatebands.com/include/app_top.php require_once("/var/www/html/locatebands.com/include/app_top.php") # line 4, file: /var/www/html/locatebands.com/index.php I am not getting any clue. Please help. Thanks in advance. With best regards, Suddhashil Ghosh

Comments

 [2009-12-02 00:31 UTC] danielc (Daniel Convissor)
-Status: Open +Status: Wont fix
Your ERRNO is 2048. 2048 is the value of the E_STRICT error reporting constant. PEAR DB can not be run in E_STRICT mode. Turn of E_STRICT checking and you'll be fine.
 [2009-12-02 18:42 UTC] suddhashil2000 (Suddhashil Ghosh)
Thanks for your help. I have turned off E_STRICT from php.ini as per your suggestion. But unfortunately got no effect. Then with some R&D I have commented the functionality: function quote($string = null) { return ($string === null) ? 'NULL' : "'".str_replace("'", "''", $string)."'"; }. Now the site is running, but with lots of error. The first error in few pages are "Store Error!!" (which is defined in the config file). Then I am also getting the error: ERRNO: 8 TEXT: Undefined index: name LOCATION: /var/www/html/locatebands.com/templates_c/%%3F^3F8^3F8866CA%%home_top_left.tpl.php, line 91, at December 2, 2009, 7:37 am Showing backtrace: include("/var/www/html/locatebands.com/templates_c/%%3F^3F8^3F8866CA%%hom...") # line 1884, file: /var/www/html/locatebands.com/libs/smarty/Smarty.class.php Smarty._smarty_include(Array[2]) # line 15, file: /var/www/html/locatebands.com/templates_c/%%45^45E^45E480CD%%index.tpl.php include("/var/www/html/locatebands.com/templates_c/%%45^45E^45E480CD%%ind...") # line 1271, file: /var/www/html/locatebands.com/libs/smarty/Smarty.class.php Smarty.fetch("index.tpl", null, null, true) # line 1121, file: /var/www/html/locatebands.com/libs/smarty/Smarty.class.php Smarty.display("index.tpl") # line 19, file: /var/www/html/locatebands.com/index.php. Should turn off E_STRICT some where else. Please guide me further. Thanks & Regards Suddhashil Ghosh