#39298 [Opn->Bgs]: Removing "/" slash works bad

From: Date: Sun, 29 Oct 2006 14:40:42 +0000
Subject: #39298 [Opn->Bgs]: Removing "/" slash works bad
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-104136@lists.php.net to get a copy of this message
ID: 39298 Updated by: tony2001@php.net 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

« previous php.bugs (#104136) next »