Doing drush cc on an alpine (containerized) based system:

glob() expects parameter 2 to be integer, string given rules.core.inc:1785                                   [warning]
Invalid argument supplied for foreach() rules.core.inc:1785                                                  [warning]

Code shows this breaks contrib integration.

Doc says we can't rely on the flag and experts say we should code around that.

Comments

axel.rutz created an issue. See original summary.

geek-merlin’s picture

Status: Active » Needs review
StatusFileSize
new1.08 KB

Trivial patch flying in, untested yet.

Status: Needs review » Needs work

The last submitted patch, 2: rules-2948897-2-Breaks-on-alpine.patch, failed testing. View results

geek-merlin’s picture

Status: Needs work » Needs review
StatusFileSize
new1.08 KB

OMG, we're in long-array-syntax land...

tr’s picture

StatusFileSize
new760 bytes

Slight modification to move the drupal_get_path() out of the loop.

tr’s picture

@axel.rutz: Can I get confirmation that my modified patch in #5 fixes the problem?

stmh’s picture

@TR works for me.

  • TR committed ccd65d1 on 7.x-2.x authored by axel.rutz
    Issue #2948897 by axel.rutz, TR: Breaks on alpine: "glob() expects...
tr’s picture

Status: Needs review » Fixed

Committed. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.