FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=16859&edit=1

ID: 16859
Updated by: danielc@analysisandsolutions.com
Reported By: suddhashil2000 at gmail dot com
Summary: DB_mysql::quote() should be compatible with that of
DB_common::quote()
-Status: Open
+Status: Wont fix
Type: Bug
Package: DB
Operating System: Unix
Package Version: Unknown
PHP Version: 5.2.1
Roadmap Versions:
New Comment:

-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.


Previous Comments:
------------------------------------------------------------------------

[2009-12-01 12:12:15] suddhashil2000

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

------------------------------------------------------------------------

Search Discussions

  • Suddhashil2000 at Dec 2, 2009 at 12:43 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=16859&edit=1

    ID: 16859
    Comment by: suddhashil2000@gmail.com
    Reported By: suddhashil2000 at gmail dot com
    Summary: DB_mysql::quote() should be compatible with that of
    DB_common::quote()
    Status: Wont fix
    Type: Bug
    Package: DB
    Operating System: Unix
    Package Version: Unknown
    PHP Version: 5.2.1
    Roadmap Versions:
    New Comment:

    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


    Previous Comments:
    ------------------------------------------------------------------------

    [2009-12-01 19:31:30] danielc

    -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-01 12:12:15] suddhashil2000

    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

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedDec 1, '09 at 6:31p
activeDec 2, '09 at 12:43p
posts2
users2
websitepear.php.net

2 users in discussion

Suddhashil2000: 1 post Danielc: 1 post

People

Translate

site design / logo © 2022 Grokbase