Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This patch to fix the notice error when running the test: EnvironmentTest::testCheckMemoryLimit()
.
A non well formed numeric value encountered
This patch comes from #3023066: [PHP 7.3] Fix BootstrapMiscTestCase::testCheckMemoryLimit() notice.
Comment | File | Size | Author |
---|---|---|---|
#8 | 3024259.patch | 1.18 KB | Pol |
Comments
Comment #2
PolComment #3
PolComment #4
PolComment #6
alexpottWhy isn't
EnvironmentTest::providerTestCheckMemoryLimit()
failing on the DrupalCI when PHP 7.3 runs against HEAD?Comment #7
alexpottLol I know why. This test is very bogus. On DrupalCI the CLI limit is likely the same as my local - it's
-1
to$twice_avail_memory
gets set to-2MB
which is nonsense. I think we should replace$twice_avail_memory
with3000000YB
cause that is absurd.Comment #8
PolHere's the updated patch.
Comment #9
Fabianx CreditAttribution: Fabianx as a volunteer commentedLooks good :)
Comment #10
alexpottCommitted and pushed e57c4a13e6 to 8.7.x and 7041c1c520 to 8.6.x. Thanks!
Let's change this to
// Test an unlimited memory limit.
This shouldn't be here...
Fixed this all on commit.
Comment #13
PolLooks like I wasn't really awake in the train this morning, thanks for fixing it @alex !!