|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-11-14 23:58 UTC] felipe@php.net
[2012-11-14 23:58 UTC] felipe@php.net
-Status: Open
+Status: Not a bug
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 22:00:01 2025 UTC |
Description: ------------ When calling a nonexistent method from __call or __callStatic, PHP crashes with the message "Segmentation Fault: 11" Replicable in both PHP 5.3.18 and 5.4.8. Test script: --------------- class SegFault{ public function __call($m, $a){ $this->hjkl(); } } $obj = new SegFault(); $obj->asdf(); --OR-- class SegFault{ public static function __callStatic($m, $a){ self::hjkl(); } } SegFault::asdf(); Expected result: ---------------- I'd imagine a memory exhaustion error or the likes. Actual result: -------------- Segmentation fault: 11