Why doesn't PHP 7.2 fopen(/tmp, a) write to the file?
问题 I have an old "PHPDBG" function that lets me "printf" to a text file. I've had PHPDBG.inc "since forever" (at least since PHP 4.x days), but it doesn't seem to be working in my current configuration (ubuntu18, Apache 2.4.29 and PHP 7.2). Specifically: I can't open the file ($fp is null) ... /tmp/PHPDBG.txt never gets created (because of the fopen failure) /tmp should be world-writable ... and ... I don't seem to be able to get a PHP error in the Apache error.log, or get anything meaningful