Re: PHP 4.0 Bug #9931 Updated: under Communicator 4.76 {basename(PHP_SELF) doesn't return value}

From: Date: Fri, 23 Mar 2001 16:52:10 +0000
Subject: Re: PHP 4.0 Bug #9931 Updated: under Communicator 4.76 {basename(PHP_SELF) doesn't return value}
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-49831@lists.php.net to get a copy of this message
my situation: is common.function.php function_abc() { $return_string = basename($PHP_SELF); return $return_string; } un ir listing.php { include("common.functions.inc.php"); <? echo function_abc(); ?> } and there function () returns empty string ... Only under Netscape Communicator 4.76 and NT4 un Win2k IE55 or NC601 works fine server - RH62, Apache+PHP4+MySQL Bug Database wrote: > > ID: 9931 > Updated by: sniper > Reported By: ieleja@arc.lv > Old-Status: Open > Status: Feedback > Bug Type: *Function Specific > Assigned To: > Comments: > > Your example code doesn't work. > > This works for me just fine: > > (of course the undefined vars don't work..) > > <?php > > > > $retStr= '<a href="' . basename($PHP_SELF) . "?lo=" > > . ($lo - $recordsPerPage ) > > . "&" > > . $xtraQuery > > . '">&lt;&lt;Previous</a>&nbsp;" : "' > ; > > > > echo $retStr; > > ?> > > And I don't know how used browser would matter on this. > > --Jani > > Previous Comments: > --------------------------------------------------------------------------- > > [2001-03-22 11:35:59] ieleja@arc.lv > from phorSale//common/common.functions.php > > { > > $retStr .= "<a href=" . basename($PHP_SELF) . "?lo=" . ( $lo - > $recordsPerPage ) . "&" . $xtraQuery . ">&lt;&lt; > Previous</a>&nbsp;" : "" ; > > } > > It's happens only under Netscape 4.76 > > Under IE 5.5, 6.01 all works fine > > --------------------------------------------------------------------------- > > ATTENTION! Do NOT reply to this email! > To reply, use the web interface found at > http://bugs.php.net/?id=9931&edit=2

« previous php.dev (#49831) next »