php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36089 using require_once with variable names for path doesnt realize they are same
Submitted: 2006-01-19 17:00 UTC Modified: 2006-01-19 17:41 UTC
From: diana at hotelkey dot com Assigned:
Status: Not a bug Package: Variables related
PHP Version: 4.4.2 OS: Windows and Linux
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: diana at hotelkey dot com
New email:
PHP Version: OS:

 

 [2006-01-19 17:00 UTC] diana at hotelkey dot com
Description:
------------
part of our application does a require once like this:
require_once Path::getPath('libraries')."file.php"
and other parts do it like this
require_once $libraries_path."file.php"
php doesnt recognize these as the same even though they both result in an identical string as the path
and therefore includes the file twice.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-19 17:05 UTC] derick@php.net
Are you sure the capitalization of the two are the same?
 [2006-01-19 17:32 UTC] diana at hotelkey dot com
just realized that the strings are not exactly the same, we are using ../../ in one and not the other.  Thanks
 [2006-01-19 17:41 UTC] tony2001@php.net
.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 12:01:33 2025 UTC