I want to compile a custom CLI PHP executable that introduces one minor change. Currently, when you run a CLI script, it spits out an extra newline before any output. I want to eliminate that first blank newline. Example:
#!/usr/bin/php -q
<?
print "hi";
?>
Currently, this is how PHP would run:
# ./mycode
hi
#
Instead, I want it to behave like:
# ./mycode
hi
#
All I can guess is that this is a simple change in the PHP source code but I have no idea what file/line I should be looking to modify.