php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9931 under Communicator 4.76 {basename(PHP_SELF) doesn't return value}
Submitted: 2001-03-22 11:35 UTC Modified: 2001-03-23 11:58 UTC
From: ieleja at arc dot lv Assigned:
Status: Closed Package: *Function Specific
PHP Version: 4.0.4pl1 OS: Linux RH6.2
Private report: No CVE-ID: None
 [2001-03-22 11:35 UTC] ieleja at arc dot 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-23 08:23 UTC] sniper@php.net
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

 [2001-03-23 11:58 UTC] hholzgra@php.net
user used $PHP_SELF in function 
without "global $PHP_SELF;"
so generating malformed link 
that confused some browsers
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 17:01:29 2024 UTC