|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-10-23 17:00 UTC] jsgoupil at lookstrike dot com
Description:
------------
Everything is in the summary. When extending a class to parent or self (nobody does that uh :P ?), php crashes.
Reproduce code:
---------------
<?php
class a extends self {
}
?>
or
<?php
class a extends parent {
}
?>
Expected result:
----------------
Error like extending "extends" keyword ?
Actual result:
--------------
Crash !
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 19:00:02 2025 UTC |
Andi, plz, review this fix: Index: zend_execute_API.c =================================================================== RCS file: /repository/ZendEngine2/zend_execute_API.c,v retrieving revision 1.304 diff -u -r1.304 zend_execute_API.c --- zend_execute_API.c 5 Oct 2004 06:53:39 -0000 1.304 +++ zend_execute_API.c 23 Oct 2004 15:20:05 -0000 @@ -884,6 +884,10 @@ char dummy = 1; zend_fcall_info fcall_info; zend_fcall_info_cache fcall_cache; + + if (!name_length || !name) { + return FAILURE; + } lc_name = do_alloca(name_length + 1); zend_str_tolower_copy(lc_name, name, name_length);