Ask a Question related to PHP Development, Design and Development.
-
sniper@php.net #1
#24921 [Opn->Fbk]: calling function with "Class Type Hints" arguments crashes PHP
ID: 24921
Updated by: [email]sniper@php.net[/email]
Reported By: itotakas at msu dot edu
-Status: Open
+Status: Feedback
Bug Type: Zend Engine 2 problem
Operating System: Win 2000 Pro SP4
PHP Version: 5CVS-2003-08-02 (dev)
New Comment:
What do you mean with "PHP crush" ??? I guess you mean "crash", but why
do you think it crashes?
Previous Comments:
------------------------------------------------------------------------
[2003-08-03 06:20:07] itotakas at msu dot edu
I tried php5-win32-200308031030, but still got same result(PHP crush).
I wonder this problem is due to my platform ,,
My platform is
OS : Win 2000 Pro SP4
PHP : php5-win32-200308031030
Apache : 1.3.24
Mode : SAPI modules
Hope this help
------------------------------------------------------------------------
[2003-08-03 05:30:10] [email]sniper@php.net[/email]
Output with latest CVS:
Warning: Missing argument 1 for get()
in /usr/src/web/php/php5/t.php on line 4
Fatal error: Argument 1 must be an instance of bug in
/usr/src/web/php/php5/t.php on line 4
And no crash here.
------------------------------------------------------------------------
[2003-08-02 14:23:11] itotakas at msu dot edu
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 this bug report at [url]http://bugs.php.net/?id=24921&edit=1[/url]
sniper@php.net Guest
-
calling a function from <a href="">???MX2004
I made a component that has a TextArea in it. This TextArea takes a html formated string and displays the text , part of the text has links using... -
#24921 [Fbk->Csd]: calling function with "Class Type Hints" arguments crashes PHP
ID: 24921 User updated by: itotakas at msu dot edu Reported By: itotakas at msu dot edu -Status: Feedback +Status: ... -
#24921 [Fbk->Opn]: calling function with "Class Type Hints" arguments crashes PHP
ID: 24921 User updated by: itotakas at msu dot edu Reported By: itotakas at msu dot edu -Status: Feedback +Status: ... -
#24921 [Csd->Opn]: calling function with "Class Type Hints" arguments crashes PHP
ID: 24921 User updated by: itotakas at msu dot edu Reported By: itotakas at msu dot edu -Status: Closed +Status: ... -
"Arguments are of the wrong type, out of acceptable range" error
I'm getting an "Arguments are of the wrong type, out of acceptable range, in conflicts with each other " error , pointing to the sql statement in... -
sniper@php.net #2
#24921 [Opn->Fbk]: calling function with "Class Type Hints" arguments crashes PHP
ID: 24921
Updated by: [email]sniper@php.net[/email]
Reported By: itotakas at msu dot edu
-Status: Open
+Status: Feedback
Bug Type: Zend Engine 2 problem
Operating System: Win 2000 Pro SP4
PHP Version: 5CVS-2003-08-02 (dev)
New Comment:
Please try using this CVS snapshot:
[url]http://snaps.php.net/php4-STABLE-latest.tar.gz[/url]
For Windows:
[url]http://snaps.php.net/win32/php4-win32-STABLE-latest.zip[/url]
I still can not reproduce this..
Previous Comments:
------------------------------------------------------------------------
[2003-08-05 22:03:04] itotakas at msu dot edu
At first, I should say sorry for easy type miss :(
I meant "PHP crash".
I tried other codes to find out the pattern of this problem.
<?
class bug {
function get(bug $bug)
{
return $bug;
}
}
class test {
function call()
{
$bug = new bug;
// PHP should report the missing argument here
$bug->get();
}
}
$test = new test;
$test->call();
?>
This code also cause PHP crash like the reproduce code I posted
before.
=============================================
Apache.exe - Application Error
Command "0x100f334" tried to refer Memory "0x0000000c".
Memory could not be "read"
Nonhandled Exception occurred in Apache(PHP4TS.dll)
0xC0000005: Access Violation
=============================================
but, I am not sure why this problem happen...
I hope other users can reproduce same problem so that more infomation
will be available for this problem...
------------------------------------------------------------------------
[2003-08-05 18:34:21] [email]sniper@php.net[/email]
What do you mean with "PHP crush" ??? I guess you mean "crash", but why
do you think it crashes?
------------------------------------------------------------------------
[2003-08-03 06:20:07] itotakas at msu dot edu
I tried php5-win32-200308031030, but still got same result(PHP crush).
I wonder this problem is due to my platform ,,
My platform is
OS : Win 2000 Pro SP4
PHP : php5-win32-200308031030
Apache : 1.3.24
Mode : SAPI modules
Hope this help
------------------------------------------------------------------------
[2003-08-03 05:30:10] [email]sniper@php.net[/email]
Output with latest CVS:
Warning: Missing argument 1 for get()
in /usr/src/web/php/php5/t.php on line 4
Fatal error: Argument 1 must be an instance of bug in
/usr/src/web/php/php5/t.php on line 4
And no crash here.
------------------------------------------------------------------------
[2003-08-02 14:23:11] itotakas at msu dot edu
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 this bug report at [url]http://bugs.php.net/?id=24921&edit=1[/url]
sniper@php.net Guest



Reply With Quote

