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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ieleja at arc dot lv
New email:
PHP Version: OS:

 

 [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 26 09:01:29 2024 UTC