php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #78857 Provide more context for "cannot redeclare" error
Submitted: 2019-11-22 13:20 UTC Modified: 2019-12-13 10:18 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: ghghghghgh at example dot com Assigned:
Status: Open Package: opcache
PHP Version: 7.4Git-2019-11-22 (Git) OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2019-11-22 13:20 UTC] ghghghghgh at example dot com
Description:
------------
can you please change that either to an Exception or add the information *who* included the file from the wrong path? 

that's clearly an application bug where on one place out of 200000 lines of code a config option from where to load includes is ignored and that happens within auto/fuzzy-tests - no fun to debug

[22-Nov-2019 13:43:05 Europe/Vienna] PHP Fatal error:  Cannot redeclare GetUserFullName() (previously declared in api/functions.inc.php:22) in cms/functions.inc.php on line 22


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-12-13 10:18 UTC] nikic@php.net
-Summary: Preload: PHP Fatal error: Cannot redeclare +Summary: Provide more context for "cannot redeclare" error -Type: Bug +Type: Feature/Change Request
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Jan 20 11:01:23 2020 UTC