Professional Web Applications Themes

#38783 [NEW]: Call to non-static as static E_STRICT thrown when error reporting set to E_ALL - PHP Bugs

From: dmb27 at cornell dot edu Operating system: Redhat AS 4 PHP version: 5.1.6 PHP Bug Type: Class/Object related Bug description: Call to non-static as static E_STRICT thrown when error reporting set to E_ALL Description: ------------ After upgrading from 5.1.2 to 5.1.6, Pear DB starting failing due to a static call to a non-static method, which should be an E_STRICT (according to the doentation). The error reporting level remains unchanged at E_ALL, which should not include E_STRICT errors. Reverting back to PHP 5.1.2 cause the problem to go away. This is reproducable on a few specific pages we have, but ...

  1. #1

    Default #38783 [NEW]: Call to non-static as static E_STRICT thrown when error reporting set to E_ALL

    From: dmb27 at cornell dot edu
    Operating system: Redhat AS 4
    PHP version: 5.1.6
    PHP Bug Type: Class/Object related
    Bug description: Call to non-static as static E_STRICT thrown when error reporting set to E_ALL

    Description:
    ------------
    After upgrading from 5.1.2 to 5.1.6, Pear DB starting failing due to a
    static call to a non-static method, which should be an E_STRICT (according
    to the doentation). The error reporting level remains unchanged at
    E_ALL, which should not include E_STRICT errors. Reverting back to PHP
    5.1.2 cause the problem to go away.

    This is reproducable on a few specific pages we have, but not all of our
    queries fail, though all of them should flow through the same codepath.

    Disabled APC, did not change anything.

    Actual result:
    --------------
    generateErrorString("Non-static method DB::isManip() should not be
    called statically, assuming $this from incompatible context",
    "/home/site/overpitch.com/release/current/lib/DB
    -1.7.6/DB/mysql.php", 300)
    /home/site/overpitch.com/release/current/lib/DB-1.7.6/DB/mysql.php:300
    debug_php_error(2048, "Non-static method DB::isManip() should not be
    called statically, assuming $this from incompatible context",
    "/home/site/overpitch.com/release/current/lib/
    DB-1.7.6/DB/mysql.php", 300, Array(1))

    /home/site/overpitch.com/release/current/lib/DB-1.7.6/DB/common.php:1203
    DB_mysql->simpleQuery("SELECT

    ....

    --
    Edit bug report at [url]http://bugs.php.net/?id=38783&edit=1[/url]
    --
    Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=38783&r=trysnapshot44[/url]
    Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=38783&r=trysnapshot52[/url]
    Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=38783&r=trysnapshot60[/url]
    Fixed in CVS: [url]http://bugs.php.net/fix.php?id=38783&r=fixedcvs[/url]
    Fixed in release: [url]http://bugs.php.net/fix.php?id=38783&r=alreadyfixed[/url]
    Need backtrace: [url]http://bugs.php.net/fix.php?id=38783&r=needtrace[/url]
    Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=38783&r=needscript[/url]
    Try newer version: [url]http://bugs.php.net/fix.php?id=38783&r=oldversion[/url]
    Not developer issue: [url]http://bugs.php.net/fix.php?id=38783&r=support[/url]
    Expected behavior: [url]http://bugs.php.net/fix.php?id=38783&r=notwrong[/url]
    Not enough info: [url]http://bugs.php.net/fix.php?id=38783&r=notenoughinfo[/url]
    Submitted twice: [url]http://bugs.php.net/fix.php?id=38783&r=submittedtwice[/url]
    register_globals: [url]http://bugs.php.net/fix.php?id=38783&r=globals[/url]
    PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=38783&r=php3[/url]
    Daylight Savings: [url]http://bugs.php.net/fix.php?id=38783&r=dst[/url]
    IIS Stability: [url]http://bugs.php.net/fix.php?id=38783&r=isapi[/url]
    Install GNU Sed: [url]http://bugs.php.net/fix.php?id=38783&r=gnused[/url]
    Floating point limitations: [url]http://bugs.php.net/fix.php?id=38783&r=float[/url]
    No Zend Extensions: [url]http://bugs.php.net/fix.php?id=38783&r=nozend[/url]
    MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=38783&r=mysqlcfg[/url]
    dmb27 at cornell dot edu Guest

  2. #2

    Default #38783 [Opn->Bgs]: Call to non-static as static E_STRICT thrown when error reporting set to E_ALL

    ID: 38783
    Updated by: [email]hellyphp.net[/email]
    Reported By: dmb27 at cornell dot edu
    -Status: Open
    +Status: Bogus
    Bug Type: Class/Object related
    Operating System: Redhat AS 4
    PHP Version: 5.1.6
    New Comment:

    Thank you for taking the time to write to us, but this is not
    a bug. Please double-check the doentation available at
    [url]http://www.php.net/manual/[/url] and the instructions on how to report
    a bug at [url]http://bugs.php.net/how-to-report.php[/url]

    ..


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

    [2006-09-11 20:41:28] dmb27 at cornell dot edu

    Description:
    ------------
    After upgrading from 5.1.2 to 5.1.6, Pear DB starting failing due to a
    static call to a non-static method, which should be an E_STRICT
    (according to the doentation). The error reporting level remains
    unchanged at E_ALL, which should not include E_STRICT errors.
    Reverting back to PHP 5.1.2 cause the problem to go away.

    This is reproducable on a few specific pages we have, but not all of
    our queries fail, though all of them should flow through the same
    codepath.

    Disabled APC, did not change anything.

    Actual result:
    --------------
    generateErrorString("Non-static method DB::isManip() should not be
    called statically, assuming $this from incompatible context",
    "/home/site/overpitch.com/release/current/lib/DB
    -1.7.6/DB/mysql.php", 300)

    /home/site/overpitch.com/release/current/lib/DB-1.7.6/DB/mysql.php:300
    debug_php_error(2048, "Non-static method DB::isManip() should not
    be called statically, assuming $this from incompatible context",
    "/home/site/overpitch.com/release/current/lib/
    DB-1.7.6/DB/mysql.php", 300, Array(1))

    /home/site/overpitch.com/release/current/lib/DB-1.7.6/DB/common.php:1203
    DB_mysql->simpleQuery("SELECT

    ....


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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=38783&edit=1[/url]
    helly@php.net Guest

Similar Threads

  1. Replies: 2
    Last Post: December 3rd, 12:47 AM
  2. #39681 [NEW]: this assignment outside class breaks static function call
    By mail at jorgenhorstink dot nl in forum PHP Bugs
    Replies: 0
    Last Post: November 29th, 11:55 AM
  3. #39664 [NEW]: Invokation of non-static method as static issue
    By john dot hargrove at sellingsource dot com in forum PHP Bugs
    Replies: 3
    Last Post: November 28th, 10:33 PM
  4. Replies: 0
    Last Post: October 25th, 02:01 PM
  5. Replies: 3
    Last Post: October 5th, 03:04 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139