ID: 47911 Updated by: j...@php.net Reported By: webmaster at 303030 dot com -Status: Open +Status: Feedback Bug Type: Performance problem Operating System: winxp PHP Version: 5.2.9 New Comment:
Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2009-04-07 00:38:23] webmaster at 303030 dot com Description: ------------ i have one script which use file_exists am upfrading from php4 after upgrade my page take 7 or 10 seconds to exectuted i test the same script under php4 it take less than 1 second i remove file_exists from the script the page executed less than 1 second so i bleve that the problem is in file_exists Reproduce code: --------------- <? $mokhatatpicp="../mokhatatpic/".$row[mokhatatid].".pdf"; $mokhatatpicj="../mokhatatpic/".$row[mokhatatid].".jpg"; if(file_exists($mokhatatpicp)) { $mokhatatpicp="mokhatatpic/".$row[mokhatatid].".pdf"; echo"<a href=# onclick=\"showModalDialog('../picview.hnt?myx=$mokhatatpicp&hex=embed%20' ,'ÓÈÍÇä','width:1200;resizable: yes; help: no; status:no; scroll: no;');return false;\" ><img src=../images/image.jpg border=0></a>"; } elseif(file_exists($mokhatatpicj)) { $mokhatatpicj="mokhatatpic/".$row[mokhatatid].".jpg"; echo"<a href=# onclick=\"showModalDialog('../picview.hnt?myx=$mokhatatpicj' ,'ÓÈÍÇä','full-screen:yes;resizable: yes; help: no; status:no; scroll: no;');return false;\" ><img src=../images/image.jpg border=0></a>"; } else {echo "<img src=../images/delete.gif border=0>";} ?> Expected result: ---------------- this only snippt of the code so i didnot expect any result Actual result: -------------- this only snippt of the code so i didnot expect any result ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47911&edit=1