mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 08:05:53 +03:00
[GH-ISSUE #1744] Cannot redeclare function issues #733
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#733
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hcker2000 on GitHub (Aug 5, 2022).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1744
Version 2.8.0
Once we upgraded to 2.8.0 all inline functions are throwing the following error:
Cannot redeclare banana() (previously declared in /var/www/html/mysite.com/App/Views/Agency/Info/Agency.php:362)Function name does not matter. You can change them to anything and they throw that error
@mimmi20 commented on GitHub (Aug 17, 2022):
Could you provide the code of your monolog configuration and the file which creates the error?
@Seldaek commented on GitHub (Aug 17, 2022):
That really doesn't seem related to monolog.. but if you think it is then I'll need a lot more details.
@hcker2000 commented on GitHub (Aug 17, 2022):
I can get you whatever info you need. All I know at this point is that I
upgraded to 2.8 via composer and everything started throwing those errors.
It was the only change I made at the time. It also goes away as soon as I
downgrade to 2.7 it goes away.
On Wed, Aug 17, 2022, 5:32 PM Jordi Boggiano @.***>
wrote:
@hcker2000 commented on GitHub (Aug 17, 2022):
Yup I can get that to you. A copy of my composer.json may also help
On Wed, Aug 17, 2022, 1:53 AM Thomas Müller @.***>
wrote:
@Seldaek commented on GitHub (Aug 20, 2022):
OK if you are sure it is coming from Monolog 2.8 let's look at changes.. https://github.com/Seldaek/monolog/releases/tag/2.8.0
The only two things I could imagine causing weird side effects are: https://github.com/Seldaek/monolog/issues/1733 and https://github.com/Seldaek/monolog/issues/1727
Do you have any context entries with __toString, and do you serialize/deserialize the logger/handlers? If not I don't see what could possibly change here.
@hcker2000 commented on GitHub (Aug 20, 2022):
So I finally had some time to try and get you the files. So I updated my setup back to 2.8.0 and everything is working just fine now so I have no idea if this was some kind of caching issue or if composer got a partial file or something.
Sorry for the false alarm.
@Seldaek commented on GitHub (Aug 20, 2022):
No worries, glad it's fixed.