ID: 27867 Updated by: [EMAIL PROTECTED] Reported By: andrej at antiszoc dot hu -Status: Open +Status: Feedback Bug Type: Program Execution Operating System: FreeBSD PHP Version: 4.3.5 New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try avoid embedding huge scripts into the report. Previous Comments: ------------------------------------------------------------------------ [2004-04-05 07:09:59] andrej at antiszoc dot hu Description: ------------ We are using a script, which looks up every directory of our webhosting customers. For some reasons we don't use quota, just looks the space, the customers use. The script executes du, width exec('du -d 0 -h /MAINDIR'.dirname); this worked just fine, for weeks. Last week we update-ed to PHP4.3.5 and after, the script emailed us very wierd numbers. Taking a closer look we saw, that with exec() du returns exactly the twice of the real du value, but everything else fine. We tested it from directly in the shell, and of coz several times, in our PHP script. This a very simple thing, so wouldn't post any code samples. P.S: I've just tried stat, it worked far more worse... Thx, Andrej ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27867&edit=1