Closed (outdated)
Project:
Drupal core
Version:
9.5.x-dev
Component:
base system
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Sep 2015 at 14:36 UTC
Updated:
25 Aug 2023 at 17:43 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
Aki Tendo commentedNote - assert_options(ASSERT_ACTIVE) and ini_get return the same value at all times - there's no way to tell if assertions where activated at run time, by php.ini or by .htaccess.
I would rather deal with the PHP 7 tiger in a later patch.
Comment #5
Aki Tendo commentedWhy is adding a single status breaking all these tests?
Comment #9
stefan.r commentedadding a warning about security - see #2569049: Add a hook_requirements() that warns if assertions are turned on and discourage/remove double quotes in assert()
Comment #10
Aki Tendo commentedI'd like to finish this ticket out but I'm at a complete loss as to why all those tests are breaking. Is it because I have this checking at install time as well as run?
Also, assertions being turned on shouldn't be a stop on installation - otherwise we won't be able to test any assertions touched during install. So warning, but not a show stop.
Comment #11
almaudoh commentedSending #9 to testbot
Comment #13
stefan.r commentedI think it'll just show a warning on install - which is fine, it's skippable. We'll just need to set up simpletest to ignore it somehow, or for it not to trigger there.
Comment #15
mr.baileysDrupalKernel explicitly enables assertions:
I added added a step to InstallerTestBase to continue on the requirements review step. This should get rid of the test failures.
Comment #16
mr.baileysTypo fix/better comment.
Comment #18
mr.baileysMissed one.
Comment #20
Aki Tendo commented"In addition, this feature introduces considerable overhead and performance."
Change to
"In addition, enabling assertions introduces considerable overhead and performance loss."
Otherwise looks good to me.
Comment #21
mr.baileysChanged to wording to the suggestion in #20
Comment #33
smustgrave commentedWonder after 7 years if this is still a valid task? If so will need a reroll and maybe additional changes for D10
Comment #35
smustgrave commentedSince there hasn't been a follow up or movement in 7+ years. going to close for now.
If still a valid task please reopen.