[16:17:43] tgr|away: Unless I'm missing something... -B isn't gonna work [17:25:29] Reedy: yeah that flag doesn't seem to do what I imagined it does [17:25:35] :( [17:26:12] I have no idea what it actually does... seems to sort of run the argument but it also completely messes up how the other arguments are interpreted [17:26:48] what does what I meant is -d auto_prepend_file [17:27:20] https://www.php.net/manual/en/filter.configuration.php [17:27:30] uh, not the right one [17:27:36] https://www.php.net/manual/en/features.commandline.php [17:27:51] https://www.php.net/manual/en/features.commandline.options.php [17:27:52] 3rd time lucky [17:28:20] -B Run PHP before processing input lines [17:28:20] -R Run PHP for every input line [17:28:20] -F Parse and execute for every input line [17:28:20] -E Run PHP after processing all input lines [17:28:27] It seems you can use B with other flags... for oddness [17:28:41] yeah and that seems to say it will be executed before running the main code [17:28:51] but it doesn't seem to actually do that [17:29:03] indeed [17:30:44] instead I think it expects the entire code within -B/R/F/E, and stdin / the given file will be interpreted as input text, not code [17:31:02] anyway auto_prepend_file does what you'd expect [17:31:45] Isn't that going to be too early to set the hook though? [17:32:08] yes, which is why it needs to use MW_CONFIG_FILE [17:32:21] Oh, duh [17:32:28] certainly a bit roundabout [17:32:31] use that to set MW_CONFIG_FILE to the separate file... [17:32:39] let's have another look [17:33:41] the reasonable thing would be to read MW_CONFIG_FILE from env, not sure why we don't do that [17:34:04] Yeah, I did notice that MW didn't do that too [17:34:10] cause that would've been much easier for sure [21:09:11] If I have excimer loaded, running Phan locally whines about "includes/profiler/ProfilerExcimer.php:58 PhanTypeMismatchArgumentInternal Argument 1 ($input) is float|int but \array_keys() takes array" and the same on line 113. If I don't have excimer loaded, it's fine. [21:51:34] anomie: hi, I have forgot but: thank you very much for the detailled breakdown you have done for "LBFactoryMulti.php: PHP Notice: Undefined index: " https://phabricator.wikimedia.org/T232613#5485181 [21:52:02] determining that the issue could not exist code wise has been a time saver :-]