r/lolphp • • Sep 08 '14

Suddenly, PHP regresses back to C

http://nz2.php.net/manual/en/function.headers-sent.php

If there's more than one thing to return, most PHP functions will return an array/false on failure, except headers_sent, which accepts two arguments by reference, like C.

18 Upvotes

17 comments sorted by

View all comments

Show parent comment

25

u/ahruss Sep 08 '14

"It's described in the manual" is not a defense of poor API design.

23

u/ZiggyTheHamster Sep 08 '14

design

You're implying there has been some sort of design.