Edit report at https://bugs.php.net/bug.php?id=61151&edit=1
ID: 61151 Updated by: ras...@php.net Reported by: mark-kreine at yandex dot ru Summary: Incorrectly reports function as being redeclared -Status: Closed +Status: Not a bug Type: Bug Package: Performance problem Operating System: Ubuntu 11.10 PHP Version: 5.3.10 Block user comment: N Private report: N New Comment: Ok, so it wasn't a bug. Different bug status on our end. Previous Comments: ------------------------------------------------------------------------ [2012-02-21 07:33:03] mark-kreine at yandex dot ru Problem solved. ------------------------------------------------------------------------ [2012-02-21 07:17:42] mark-kreine at yandex dot ru Well, there are many lines of code. If you permit I can send you a tarball of files or attach it somewhere to this bug report. Please advise me on how to send you these files. ------------------------------------------------------------------------ [2012-02-21 07:11:46] ras...@php.net We'll still need a reproducible test case to do anything here. There is obviously something you are not telling. A standalone file or tarball of files is needed since putting just the code you pasted into a file and including it will obviously not trigger that error. ------------------------------------------------------------------------ [2012-02-21 07:05:49] mark-kreine at yandex dot ru Thanks for the answer, but the message you see is not true, that is the reason for me to write here. Following are the lines from 3 till 16 of my code in functions.php: function get_tree($tree, $pid, $result = array()) { foreach ($tree as $row) { if ($row['parent_cat_id'] == $pid) { $result[] = $row; $result = get_tree($tree, $row['cat_id'], $result); } } return $result; } ------------------------------------------------------------------------ [2012-02-21 06:59:19] ras...@php.net But you haven't given us any way to reproduce this as we can't see your code. What is on lines 3 and 16 of your functions.php script? The error message very clearly states that you are declaring get_tree() on line 3 and then again on line 16 of that file. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=61151 -- Edit this bug report at https://bugs.php.net/bug.php?id=61151&edit=1