#26275 [Opn]: Server Crash when throw exception

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

  1. #1

    Default #26275 [Opn]: Server Crash when throw exception

    ID: 26275
    User updated by: php dot bug at stre dot it
    Reported By: php dot bug at stre dot it
    Status: Open
    Bug Type: Zend Engine 2 problem
    Operating System: win32 nt5.1
    PHP Version: 5CVS-2003-11-16 (dev)
    New Comment:

    shorter version

    <?PHP
    function badfunc() {
    throw new Exception('Some Exception from bad clas');
    }
    function badcall($aaa, $bbb, $ccc) {}

    function test() {
    badfunc();
    badcall(1,1,badfunc());
    echo 'server ok';
    }
    test();
    ?>


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

    [2003-11-16 12:20:32] php dot bug at stre dot it

    Description:
    ------------
    this code below bring my server to crash

    Reproduce code:
    ---------------
    <?PHP
    class Bad {
    public static function badfunc() {
    throw new Exception('Some Exception from bad class');
    return 'hello';
    }
    public static function badcall($obj1, $key1, $val1) {
    return 'hello';
    }
    }

    try {
    function test() {
    Bad::badcall('test','bad',Bad::badfunc());
    echo 'server ok';
    }
    test();
    }
    catch(Exception $err) {
    echo $err->getMessage();
    }

    ?>

    Expected result:
    ----------------
    no response from server, must restart service



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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=26275&edit=1[/url]
    php dot bug at stre dot it Guest

  2. Similar Questions and Discussions

    1. 15 sec delay on Exception throw on 1 server not another.
      I have a ASP.NET web service using an ASMX. On my Staging server when the web service throws an exception it's no problem - round trip in the 1...
    2. Is there any way to throw an exception in a finalizer?
      I'm trying to do write test code that involves a mock object throwing an exception on object destruction if a certain condition isn't met. (In...
    3. #26275 [Opn->Ver]: Server Crash when throw exception
      ID: 26275 Updated by: sniper@php.net Reported By: php dot bug at stre dot it -Status: Open +Status: ...
    4. #26275 [NEW]: Server Crash when throw exception
      From: php dot bug at stre dot it Operating system: win32 nt5.1 PHP version: 5CVS-2003-11-16 (dev) PHP Bug Type: Zend Engine 2...
    5. Javascript error: exception throw...
      Hi! I'm running Dreamweaver MX on a Dell LATITUDE C840, using Windows 2000. I've been using MX successfully for 6 months. Recently, I've been...
  3. #2

    Default #26275 [Opn]: Server Crash when throw exception

    ID: 26275
    User updated by: php dot bug at stre dot it
    Reported By: php dot bug at stre dot it
    Status: Open
    Bug Type: Zend Engine 2 problem
    Operating System: win32 nt5.1
    PHP Version: 5CVS-2003-11-16 (dev)
    New Comment:

    sorry short version work, because there is first a standalone badfunc
    call, this version dont work

    <?PHP
    function badfunc() {
    throw new Exception('Some Exception from bad clas');
    }
    function badcall($aaa, $bbb, $ccc) {}

    function test() {
    badcall(1,1,badfunc());
    echo 'server ok';
    }
    test();
    ?>

    i think is a failure by building stack trace


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

    [2003-11-16 13:17:41] php dot bug at stre dot it

    shorter version

    <?PHP
    function badfunc() {
    throw new Exception('Some Exception from bad clas');
    }
    function badcall($aaa, $bbb, $ccc) {}

    function test() {
    badfunc();
    badcall(1,1,badfunc());
    echo 'server ok';
    }
    test();
    ?>

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

    [2003-11-16 12:20:32] php dot bug at stre dot it

    Description:
    ------------
    this code below bring my server to crash

    Reproduce code:
    ---------------
    <?PHP
    class Bad {
    public static function badfunc() {
    throw new Exception('Some Exception from bad class');
    return 'hello';
    }
    public static function badcall($obj1, $key1, $val1) {
    return 'hello';
    }
    }

    try {
    function test() {
    Bad::badcall('test','bad',Bad::badfunc());
    echo 'server ok';
    }
    test();
    }
    catch(Exception $err) {
    echo $err->getMessage();
    }

    ?>

    Expected result:
    ----------------
    no response from server, must restart service



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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=26275&edit=1[/url]
    php dot bug at stre dot it 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