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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 09:01:31 2024 UTC