|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-10-02 20:51 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2014-10-02 20:51 UTC] requinix@php.net
[2014-10-03 08:34 UTC] leandro at leandro dot org
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 15:00:02 2025 UTC |
Description: ------------ i don't know what is happening but i guess it can't eveluate (0 - 1) + (0 - 2) by some unknown reason when $n == 0 Test script: --------------- $wop = function($n) use ( &$wop ){ //if ($n == 0) return 1; //with this line commented, we get a segfault return $wop($n - 1) + $wop($n - 2); }; print_r( array_map($wop, range(0,20)) );