php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52871 PHP POINTER / TMP LOCATOR
Submitted: 2010-09-17 16:38 UTC Modified: 2010-12-31 20:38 UTC
From: stelica dot samoveanu at gmail dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.2.14 OS: Windows Vista / Gnome Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: stelica dot samoveanu at gmail dot com
New email:
PHP Version: OS:

 

 [2010-09-17 16:38 UTC] stelica dot samoveanu at gmail dot com
Description:
------------
With regard of using Http Apache and PHP Zend congruent,
in other words simultaneus, there is an ISSUE "PHP Pointer / TMP",
regardless of Gnome Linux OS and  Windows Vista OS.
It seems that PHP keep truck through an internal pointer to a specific
TMP locator / location for uploaded files yet shows a misleading
error:
... Php Pointer / TMP Locator
C:\xampp\tmp\php6D57.tmp  <=  failed to open stream
SWEETYPIE.jpg 
image/pjpeg 
3200 

When using the debugging technology within breakpoint context
it shows the Pointer TMP locator / location ok, yet "spitts" the above
misleading error !!
Any indepth technical White Paper explaination on "PHP Pointer / TMP" 
of the internal structure that can enlighten in other words highlight the
technology behind this ISSUE, or a PHP fix with this respect, perhaps ??

NOTE: NOT AN  ACCESS CONTROL LIST ( A.C.L ) ISSUE !!


Test script:
---------------
<?php
if($_FILES['file']['name'] != "")
{
$locator = "C:\\PICT\\";
$breakpoint = $_FILES['file']['name'];
$tmp = $_FILES['file']['tmp_name'];
copy( $tmp, $locator . $breakpoint);
}
?>
<html><head><title>Php Pointer TMP Locator</title></head>
<body>
<?php echo( $tmp ); ?> <br>
<?php echo( $breakpoint ); ?> <br>
<?php echo( $_FILES['file'][ 'type'] ); ?> <br>
<?php echo( $_FILES['file'][ 'size'] ); ?> <br>
</body>
</html>


Expected result:
----------------
error:
... Php Pointer TMP Locator <= open stream ok
C:\xampp\tmp\php6D57.tmp    
SWEETYPIE.jpg 
image/pjpeg 
3200 



Actual result:
--------------
error:
... Php Pointer TMP Locator <= failed to open stream
C:\xampp\tmp\php6D57.tmp    
SWEETYPIE.jpg 
image/pjpeg 
3200 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-09-18 17:27 UTC] kalle@php.net
I'm sorry, but I honestly have no idea what you are trying to report as a bug here, or the issue at all?
 [2010-09-18 17:27 UTC] kalle@php.net
-Status: Open +Status: Feedback
 [2010-12-31 20:38 UTC] jani@php.net
-Status: Feedback +Status: Bogus
 [2010-12-31 20:38 UTC] jani@php.net
Unknown issue. Please use less caps lock and more sense next time.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 14:01:31 2025 UTC