PHP slop
Wladimir Palant @WPalant@infosec.exchange
Content warning: PHP slop
There is some discussion around what this statement by a PHP developer means in practice:
“while a substantial amount of AI has been used for analysis, identification of vulnerable code, patch verification, and even test generation, only a small fraction of the functional changes were AI-generated and all of it was thoroughly reviewed and tested.”
I only skimmed this massive patch but other people were more thorough and found it… let’s say confusing. Changes that seem to be completely unrelated. Changes that seem to make no sense. Changes that seem inconsistent and/or incomplete. Complete lack of useful documentation. In other words: telltale signs of slop.
So now the stance is that only a small fraction of these changes is actually slop, and that this slop has been thoroughly reviewed and matches the quality requirements. Which, if true, would mean that the PHP codebase currently is indistinguishable from slop, with the code being incomprehensible to humans an expected occurrence. Mind you, I’m not ruling out this possibility, but it certainly is a concerning one.
Unfortunately, I consider it more likely that the PHP team is still understating the amount of LLM involvement in the creation of this patch. Which may or may not have been avoidable given the timeline and the state of the PHP codebase. If it is deemed unavoidable, then this too is very bad news for the PHP project: we are bound to see more large patches meant to eliminate the lamented technical debt. And since we’ve already established that the task is too complicated for humans you can guess who is going to be writing those.
Either way, this is the point where PHP as a project is making a decision pro or contra slop. They seem to be leaning towards the former, and once they go there it will be almost impossible to get back.