|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-01-10 19:49 UTC] charpour at gnet dot gr
Description:
------------
When running the code below, php crashes with a Segmentation fault.
(Found that by mistake)
Reproduce code:
---------------
<?php
class SegFault {
public function invalid() {
return $this->invalid();
}
}
$segfault = new SegFault();
$segfault->invalid();
?>
Expected result:
----------------
not to seg fault
Actual result:
--------------
Segmentation fault
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 10 18:00:02 2025 UTC |
Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1212028704 (LWP 11428)] 0x0828500c in zend_std_get_method (object_ptr=0xbf4a70f4, method_name=0xb7beaa3c "invalid", method_len=7) at /root/packages/php-5.2.8/Zend/zend_object_handlers.c:771 771 zend_str_tolower_copy(lc_method_name, method_name, method_len);