From:             jcastromail at yahoo dot es
Operating system: Windows XP sp2
PHP version:      5.2.5
PHP Bug Type:     Reproducible crash
Bug description:  Changed on include

Description:
------------
Hi there:

In *WINDOWS*, function include fail when i try :

  include("include\test2.php");

but works with : (take note on \ and / symbol)

  include("include/test2.php"); 
  include("include\\test2.php"); 

This error started when i installed the latest version.
I don't sure if the use of folder\file is a bad practice or not but i
don't find this change on the documentation.



Reproduce code:
---------------
file test.php

<?php 
        include("include\test2.php");
?> 

file test2 on folder include

<?
  echo "include!!\n";
?>

Expected result:
----------------
include!!


Actual result:
--------------
[17-Nov-2007 09:56:35] PHP Warning:  include() [<a
href='function.include'>function.include</a>]: Failed opening
'include        est2.php' for inclusion (include_path='.;C:\php5\pear') in
C:\ats\fum\test.php on line 2



-- 
Edit bug report at http://bugs.php.net/?id=43317&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43317&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43317&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43317&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43317&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=43317&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=43317&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=43317&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=43317&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=43317&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=43317&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=43317&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=43317&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=43317&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=43317&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43317&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=43317&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=43317&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=43317&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43317&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=43317&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=43317&r=mysqlcfg

Reply via email to