#24921 [NEW]: calling function with "Class Type Hints" arguments cause PHP crush

From: Date: Sat, 02 Aug 2003 19:23:11 +0000
Subject: #24921 [NEW]: calling function with "Class Type Hints" arguments cause PHP crush
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-45240@lists.php.net to get a copy of this message
From:             itotakas at msu dot edu
Operating system: Win 2000 Pro SP4
PHP version:      5CVS-2003-08-02 (dev)
PHP Bug Type:     Reproducible crash
Bug description:  calling function with "Class Type Hints" arguments cause PHP crush

Description:
------------
calling function with "Class Type Hints" arguments cause PHP crush

Reproduce code:
---------------
<?
  class bug {
    function get(bug $bug)
    {
        return $bug;
    }
  }

  $bug = new bug;

  // PHP should report the missing argument here
  $bug->get();
?>

Expected result:
----------------
showing error "missing argument"

Actual result:
--------------
PHP crush

-- 
Edit bug report at http://bugs.php.net/?id=24921&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24921&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24921&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24921&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24921&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24921&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24921&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24921&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24921&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24921&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24921&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24921&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24921&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24921&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24921&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24921&r=gnused



Thread (7 messages)

« previous php.bugs (#45240) next »