#40784 [NEW]: Case sensivity in constructor's fallback

Ask a Question related to PHP Bugs, Design and Development.

  1. #1

    Default #40784 [NEW]: Case sensivity in constructor's fallback

    From: [email]colder@php.net[/email]
    Operating system: Irrelevant
    PHP version: 5.2.1
    PHP Bug Type: Scripting Engine problem
    Bug description: Case sensivity in constructor's fallback

    Description:
    ------------
    When resolving a static method, there is one case where it will be
    case-sensitive, which I believe is bogous:

    Reproduce code:
    ---------------
    class A {
    function A () { echo "I'm A"; }
    }

    class B extends A {
    function __construct() {
    parent::__constrUct();
    }
    }

    $b = new B;

    Expected result:
    ----------------
    I'm A

    Actual result:
    --------------
    Fatal error: Call to undefined method A::__construct()

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

  2. Similar Questions and Discussions

    1. Lower case
      Hi, On Wed, 2005-01-26 at 12:01 +0000, Vladimir S. Petukhov wrote: lower(), upper() and case insensitive search highly depend on the correct...
    2. fallback-reboot, a new last resort in rebooting a system remotely
      Comments and suggestions are welcome, especially if there's already something like this in the free software world. Thanks for reading. This...
    3. Complicated Fallback ASP.NET Security
      I have been working on an ASP.NET app at work for quite some time now. We've been using Windows authentication up until now, but I've come across a...
    4. #23026 [Com]: Make Zend case-sensitive (classes, functions, remove case-insensitive)
      ID: 23026 Comment by: nvivo at mandic dot com dot br Reported By: mfischer@php.net Status: Open Bug Type: ...
    5. Connections to external sites, fallback to mirrors
      I have a script that incorporates content from an external site ($rootdomain). During peak traffic periods the external site experiences severe...
  3. #2

    Default #40784 [Opn->Asn]: Case sensivity in constructor's fallback

    ID: 40784
    Updated by: [email]tony2001@php.net[/email]
    Reported By: [email]colder@php.net[/email]
    -Status: Open
    +Status: Assigned
    Bug Type: Scripting Engine problem
    Operating System: Irrelevant
    PHP Version: 5.2.1
    -Assigned To:
    +Assigned To: tony2001


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

    [2007-03-12 12:31:44] [email]colder@php.net[/email]

    Description:
    ------------
    When resolving a static method, there is one case where it will be
    case-sensitive, which I believe is bogous:

    Reproduce code:
    ---------------
    class A {
    function A () { echo "I'm A"; }
    }

    class B extends A {
    function __construct() {
    parent::__constrUct();
    }
    }

    $b = new B;

    Expected result:
    ----------------
    I'm A

    Actual result:
    --------------
    Fatal error: Call to undefined method A::__construct()


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


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

  4. #3

    Default #40784 [Asn->Csd]: Case sensivity in constructor's fallback

    ID: 40784
    Updated by: [email]tony2001@php.net[/email]
    Reported By: [email]colder@php.net[/email]
    -Status: Assigned
    +Status: Closed
    Bug Type: Scripting Engine problem
    Operating System: Irrelevant
    PHP Version: 5.2.1
    Assigned To: tony2001
    New Comment:

    This bug has been fixed in CVS.

    Snapshots of the sources are packaged every three hours; this change
    will be in the next snapshot. You can grab the snapshot at
    [url]http://snaps.php.net/[/url].

    Thank you for the report, and for helping us make PHP better.




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

    [2007-03-12 12:31:44] [email]colder@php.net[/email]

    Description:
    ------------
    When resolving a static method, there is one case where it will be
    case-sensitive, which I believe is bogous:

    Reproduce code:
    ---------------
    class A {
    function A () { echo "I'm A"; }
    }

    class B extends A {
    function __construct() {
    parent::__constrUct();
    }
    }

    $b = new B;

    Expected result:
    ----------------
    I'm A

    Actual result:
    --------------
    Fatal error: Call to undefined method A::__construct()


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


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

Posting Permissions

  • You may not post new threads
  • You may 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