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

Summary: Include/once, require/once don't work with ./, ../
Product: php Reporter: jinb <jinb>
Component: ProjectAssignee: Petr Pisl <ppisl>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 123481    

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