-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3.0]: Config quirks #8293
Comments
I believe the rest of the issue is that eval() is used in Config.php against the definition default value strings. Line 915 in 7788cb5
Using double quotes, ", will likely work better. |
Lots of options on the DIRECTORY_SEPARATOR question... Option 1: Bite the bullet & use DIRECTORY SEPARATOR consistently throughout; never hardcode '/' again... Ensure folder settings are OS-appropriate. Proper solution. Least fun. Like having a paladin on the team. Option 2: At runtime, normalize important paths to unix '/', but the OS-sensitive functions, e.g., get_included_files(), won't work. We'd have to write our own wrappers around them. Note that Windows honors '/' in paths, but uses '\' in return calls like get_included_files(). Least effort, feels almost clean. Most consistent with past SMF behavior. Option 3: At runtime, normalize important paths to DIRECTORY_SEPARATOR so they work better with OS-sensitive functions. Feels a bit more hackish, though to be honest, likely cleaner than option 2. Implications here with repair_settings.php also. Likely other utilities. |
I've confirmed the following works to fix the eval issue: |
Should we stop using the hard-coded |
Yes, we should. |
So it's confirmed we have a paladin on the team. Now, or after the installer/upgrader rewrite gets merged? |
After. |
I'm in favor of option 3, above, and was under the impression that that's
always been the way it should be done, probably combined with option 2
because it needed normalised, at least when I rewrote the hooks management
system
…On Thu, Jul 18, 2024 at 6:13 PM Jon Stovell ***@***.***> wrote:
After.
—
Reply to this email directly, view it on GitHub
<#8293 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADJNNYQ5UMXX2WWM3GS62DZNBR4LAVCNFSM6AAAAABK7YVNQWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZXHAZTMMJXHA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Basic Information
Steps to reproduce
Expected result
A 3.0 forum
Actual result
WSOD error
Version/Git revision
4.0 Alpha 2 - current GH
Database Engine
All
Database Version
8.4.0
PHP Version
8.3.8
Logs
Additional Information
No response
The text was updated successfully, but these errors were encountered: