ID: 35877 Updated by: [EMAIL PROTECTED] Reported By: kirils at r1g dot edu dot lv -Status: Open +Status: Bogus Bug Type: Safe Mode/open_basedir Operating System: Linux 2.4.32 PHP Version: 4.4.1 New Comment:
That's not how it works. You think you've found a bug, which means you need to convince us that there is one. If you provide this little information then we simply assume that you don't know how things work. Previous Comments: ------------------------------------------------------------------------ [2006-01-03 21:30:44] kirils at r1g dot edu dot lv hey, you just copied your text again. let me copy mine "Please explain why you it's not the bug in PHP." and emphasize: Please EXPLAIN why you think it's not a bug in PHP. ------------------------------------------------------------------------ [2006-01-03 21:03:25] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. ------------------------------------------------------------------------ [2006-01-03 18:55:15] kirils at r1g dot edu dot lv hello there. I'm not asking you to fix my script, I'm asking you to fix the bug in PHP. The bug has been there for ages. Please explain why you it's not the bug in PHP. Please see http://lv2.php.net/fopen It states that by calling fopen('name','w') a file will be created if it does not exist and the permissions all OK. well, it DOES NOT GET CREATED when safe_mode is on. ------------------------------------------------------------------------ [2006-01-03 08:53:47] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. ------------------------------------------------------------------------ [2006-01-03 04:21:12] kirils at r1g dot edu dot lv Description: ------------ if safe_mode on, and fopen, imagejpeg (to file) .. wants to write to file that does not exist the file DOES NOT GET CREATED (file/dir permissions OK), but an error gets displayed. Warning: imagepng(): Unable to access img/test.png in /.../t.php on line 4 Warning: imagepng(): Invalid filename 'img/test.png' in /.../t.php on line 4 Reproduce code: --------------- <?php $img = imagecreatefrompng('img/font.png'); imagepng($img,'img/test.png') or die('wtf?'); echo 'test'; ?> Expected result: ---------------- i expect img/test.png to be created and "test" displayed. Actual result: -------------- img/test.png does not get created. imagecreatefrompng() works, but imagepng() fails ,dying with text "wtf?". -- this code circumvents the bug: <?php $img = imagecreatefrompng('img/font.png'); touch('img/test.png'); imagepng($img,'img/test.png') or die('wtf?'); echo 'test'; ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35877&edit=1