From:             sant9442 at gmail dot com
Operating system: Windows XP
PHP version:      5.3.0
PHP Bug Type:     CGI related
Bug description:  GPF when passing non-absolute file name

Description:
------------
A GPF was observed in line #737 in sapi\cgi\cgi_main.c:

     if (!IS_ABSOLUTE_PATH(path, path_len)) {
        real_path = tsrm_realpath(path, NULL TSRMLS_CC);
fault-> real_path_len = strlen(real_path);
        path = real_path;
        path_len = real_path_len;
     }


Reproduce code:
---------------
1) Install PHP 5.3 for win32 (VC6) version (I have not tried the VC9
version).

2) Switch to the folder and type:

  C:\PHP-5.3.0.WIN32
  php-cgi.exe FOOBAR\FOOBAR.PHP

It doesn't matter if FOOBAR folder exist or not.

Under Windows XP, with Visual Studio installed, the JIT debugger appears.
With the debug symbols avaiable, it shows the error location.

NOTE: I can not repeat this under Windows 2000, which tells me it is a
RANDOM memory bug. Whatever the pointer has in memory.

Expected result:
----------------
A "No Input File Specified" (NO GPF)

Actual result:
--------------
Under Windows XP, with Visual Studio installed, the JIT debugger appears.
With the debug symbols avaiable, it shows the error location.

NOTE: I can not repeat this under Windows 2000, which tells me it is a
RANDOM memory bug. Whatever the pointer has in memory. 

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

Reply via email to