ID: 39298 Updated by: [EMAIL PROTECTED] Reported By: dankeris at gmail dot com -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Kubuntu 6.10 PHP Version: 5.1.6 New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [2006-10-29 14:37:11] dankeris at gmail dot com Description: ------------ Instead of deleteting "/" char it makes a mysterious character (ord returns 000). ="" =null =false makes all the same thing Reproduce code: --------------- <? function return_url() { $url = "labas/"; if(strpos($url,"/")===0) $url[0]=""; $len = (strlen($url)-1); if(strrpos($url,"/")===$len) $url[$len]=""; return $url; } var_dump(return_url()); ?> Expected result: ---------------- string(6) "labas{strange char here}" Actual result: -------------- s ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39298&edit=1