This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 124908 - Include/once, require/once don't work with ./, ../
Summary: Include/once, require/once don't work with ./, ../
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks: 123481
  Show dependency tree
 
Reported: 2008-01-08 19:11 UTC by jinb
Modified: 2008-07-11 15:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jinb 2008-01-08 19:11:29 UTC
include, include_once, require, require_once functions don't work with paths startiong from "./", "../".

1. index.php:
<?
require_once("./include/functions.php");
?>
2. NB6.0 -> index.php-> run in command line:
Warning: require_once(./include/functions.php): failed to open stream: No such file or directory ...
Fatal error: require_once(): Failed opening required './include/functions.php' ...

Everything works in pure command prompt.
Comment 1 Petr Pisl 2008-06-19 13:29:23 UTC
Fixed by the new infrastructure.
Comment 2 Mikhail Matveev 2008-07-11 15:04:27 UTC
Verified