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

Pull Requests

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 Dec 05 00:01:30 2024 UTC