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:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 2 (50.0%)
Same Version:1 (100.0%)
Same OS:1 (100.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
 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 13:01:29 2024 UTC