#32491 [Fbk-Opn]: File upload error

2005-03-30 Thread Oscar dot Castillo at jpl dot nasa dot gov
 ID:   32491
 User updated by:  Oscar dot Castillo at jpl dot nasa dot gov
 Reported By:  Oscar dot Castillo at jpl dot nasa dot gov
-Status:   Feedback
+Status:   Open
 Bug Type: HTTP related
 Operating System: Solaris 9
 PHP Version:  5.0.3
 New Comment:

As of today, Wednesday 3/30/05, the File upload error - unable to
create a temporary file in Unknown on line 0 continues, even after
installing the latest PHP 5, PHP Version 5.0.4RC2-dev or
php5-STABLE-200503292230 (as listed from the snaps.php.net website).

The compile errors I was seeing were for the php5-200503292030 and
should be noted that it is not the version I am currently seeing the
File upload errors on. This is the error I was seeing:

/bin/sh /usr/local/src/php_src/php5-200503292030/libtool
--preserve-dup-deps --mode=compile
/usr/local/src/php_src/php5-200503292030/meta_ccld -IZend/
-I/usr/local/src/php_src/php5-200503292030/Zend/ -DPHP_ATOM_INC
-I/usr/local/src/php_src/php5-200503292030/include
-I/usr/local/src/php_src/php5-200503292030/main
-I/usr/local/src/php_src/php5-200503292030
-I/usr/ns-home/operational_server/plugins/include
-I/usr/local/include/libxml2 -I/usr/local/include
-I/usr/local/src/php_src/php5-200503292030/TSRM
-I/usr/local/src/php_src/php5-200503292030/Zend 
-D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT  -g
-O2 -pthreads -Wall -DZTS -c
/usr/local/src/php_src/php5-200503292030/Zend/zend_execute.c -o
Zend/zend_execute.lo -O
/usr/local/src/php_src/php5-200503292030/meta_ccld -IZend/ 
-I/usr/local/src/php_src/php5-200503292030/Zend/ -DPHP_ATOM_INC
-I/usr/local/src/php_src/php5-200503292030/include 
-I/usr/local/src/php_src/php5-200503292030/main 
-I/usr/local/src/php_src/php5-200503292030 
-I/usr/ns-home/operational_server/plugins/include 
-I/usr/local/include/libxml2 -I/usr/local/include 
-I/usr/local/src/php_src/php5-200503292030/TSRM 
-I/usr/local/src/php_src/php5-200503292030/Zend
-D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -g
-O2 -pthreads -Wall -DZTS 
-c /usr/local/src/php_src/php5-200503292030/Zend/zend_execute.c -O
-fPIC -DPIC -o Zend/zend_execute.lo

/usr/ccs/bin/as: /tmp/ccrGYLQh.s, line 196473: error: symbol
zend_error is used but not defined

/usr/ccs/bin/as: /tmp/ccrGYLQh.s: , approx line 196473: internal
error: evaluate_symbol_expression(): op 20?
make: *** [Zend/zend_execute.lo] Error 1


Previous Comments:


[2005-03-30 07:46:16] [EMAIL PROTECTED]

What compile errors?




[2005-03-30 02:15:33] Oscar dot Castillo at jpl dot nasa dot gov

I downloaded the php5-latest.tar.gz, but got compiler errors. I
downloaded the php5-STABLE-200503292230 and was able to compile it. It
is now running good so far. However, the upload problems usually take 2
- 24 hours to begin. I shall continue to monitor. 
Thanks for your help



[2005-03-29 23:39:57] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip





[2005-03-29 21:55:27] Oscar dot Castillo at jpl dot nasa dot gov

Description:

I am using iPlanet 6.0 SP5, Zend 2.5.7 and PHP 5.0.3 on a 64 bit
Solaris 9 SunFire V880 (4x4GHz CPU, 8Gb RAM). I have a problem with an
HTTP POST command that attempts to upload a file onto the web server
and a consistent File upload error - unable to create a temporary file
in Unknown on line 0 error message appears in the error logs. The
upload_tmp_dir directory is set to /tmp. The error message disappears
with a web server daemon reset (stop/start the web server daemon), but
the error begins to occur within 2 to 24 hours again. When the errors
occur, the /tmp directory begins to accumulate with php[web_server_pid]
files that are zero bytes in size. My upload_max_filesize parameter is
configured to 2Mb, however the uploaded files are never above 50kb.
I've tried many suggested fixes from the php.net bug reports area, but
to no avail. Thanks in advance for your help!

Reproduce code:
---
?php
$debug_level = 2;   // 0 = no debug; 10 = most debug
if ($debug_level  9) { phpinfo(); }
//
// Configurable variables
//
  $BaseDir = './';
  $LogFileName = $BaseDir . RTIU_translator.log;
  $SCLK_SCET_Dir = /afs/jpl/group/casops/dom/data/main/sclkscet/;  //
placed in executed shell script
  $UploadDir = $BaseDir . Temp/ ; //  Where the posted files 
are
placed
  $TransferDir = $BaseDir . Xfer/;//  Where the tar file for the
translator is created

//
// Verify resources are available
//

$LogFile = fopen( $LogFileName,'a');
if (! $LogFile)
{ print(Logging is disabled, please save all displayed messages if
help is 

#32491 [Fbk-Opn]: File upload error

2005-03-29 Thread Oscar dot Castillo at jpl dot nasa dot gov
 ID:   32491
 User updated by:  Oscar dot Castillo at jpl dot nasa dot gov
 Reported By:  Oscar dot Castillo at jpl dot nasa dot gov
-Status:   Feedback
+Status:   Open
 Bug Type: HTTP related
 Operating System: Solaris 9
 PHP Version:  5.0.3
 New Comment:

I downloaded the php5-latest.tar.gz, but got compiler errors. I
downloaded the php5-STABLE-200503292230 and was able to compile it. It
is now running good so far. However, the upload problems usually take 2
- 24 hours to begin. I shall continue to monitor. 
Thanks for your help


Previous Comments:


[2005-03-29 23:39:57] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip





[2005-03-29 21:55:27] Oscar dot Castillo at jpl dot nasa dot gov

Description:

I am using iPlanet 6.0 SP5, Zend 2.5.7 and PHP 5.0.3 on a 64 bit
Solaris 9 SunFire V880 (4x4GHz CPU, 8Gb RAM). I have a problem with an
HTTP POST command that attempts to upload a file onto the web server
and a consistent File upload error - unable to create a temporary file
in Unknown on line 0 error message appears in the error logs. The
upload_tmp_dir directory is set to /tmp. The error message disappears
with a web server daemon reset (stop/start the web server daemon), but
the error begins to occur within 2 to 24 hours again. When the errors
occur, the /tmp directory begins to accumulate with php[web_server_pid]
files that are zero bytes in size. My upload_max_filesize parameter is
configured to 2Mb, however the uploaded files are never above 50kb.
I've tried many suggested fixes from the php.net bug reports area, but
to no avail. Thanks in advance for your help!

Reproduce code:
---
?php
$debug_level = 2;   // 0 = no debug; 10 = most debug
if ($debug_level  9) { phpinfo(); }
//
// Configurable variables
//
  $BaseDir = './';
  $LogFileName = $BaseDir . RTIU_translator.log;
  $SCLK_SCET_Dir = /afs/jpl/group/casops/dom/data/main/sclkscet/;  //
placed in executed shell script
  $UploadDir = $BaseDir . Temp/ ; //  Where the posted files 
are
placed
  $TransferDir = $BaseDir . Xfer/;//  Where the tar file for the
translator is created

//
// Verify resources are available
//

$LogFile = fopen( $LogFileName,'a');
if (! $LogFile)
{ print(Logging is disabled, please save all displayed messages if
help is needed from IO supportbr);
}

// Verify UPLOAD directory
if (!file_exists($UploadDir))
{ if ($LogFile)
  { $TmpStr = sprintf(%s VERIFY Upload directory does not exist\n,
  gmdate(Y-m-d H:i:s) );
//  strftime(%Y-%m-%d %T));
fwrite($LogFile, $TmpStr);
  }
  if(!mkdir($UploadDir,0774))
  { DisplayError(Could not create Upload directory,0);
return;
  }
}
// Verify TRANSFER directory
if (!file_exists($TransferDir))
{ if ($LogFile)
  { $TmpStr = sprintf(%s VERIFY Transfer directory does not exist\n,
  gmdate(Y-m-d H:i:s) );
//  strftime(%Y-%m-%d %T));
fwrite($LogFile, $TmpStr);
  }
  print( Missing Transfer Directory: $TransferDir br);
  if (!mkdir($TransferDir,0774))
  { DisplayError(Could not create Transfer directory,0);
return;
  }
}

//
// Capture form values
//

$BaseName = escapeshellcmd($_POST['BaseName']);
$SequenceID = $_POST['SequenceID'];
$SCLK_SCET_File = $_POST['SCLK_SCET_File'];
$StartTimeUTC = $_POST['StartTimeUTC'];
$StopTimeUTC = $_POST['StopTimeUTC'];
$InputType = $_POST['input_type'];  // SASF or PRT
$OutputType = $_POST['output_type'];// SEQ or IEB
$UserFileName = $_FILES['UploadFile']['name'];
$StartALF = $_POST['StartALF']; // 0 = ?
$ALF_Partition = $_POST['ALF_Partition'];   // DEFAULT or NON_DEFAULT
$ALF_Step = $_POST['ALF_Step']; // 4 or 8

$CAS_User = $_SERVER['REMOTE_USER'];
$HostSource = $_SERVER['REMOTE_HOST'];

//
//  Debug stuff (POST data)
//
if ($debug_level  3)
{ print( Upload Directory: $UploadDir br);
  print( SCLK/SCET Directory: $SCLK_SCET_Dir br);

  if ($debug_level  8)
  { print (pre);
var_dump($_FILES);

var_dump($_POST);
print (/pre);
  }
  print( Input Type: $InputType br);
  print( Basename: $BaseName br);
  print( Upload File: $UserFileName br);
  print( Sequence ID: $SequenceID br);
  print( SCLK/SCET File: $SCLK_SCET_File br);
  print( Start UTC: $StartTimeUTC br);
  print( Stop UTC: $StopTimeUTC br);

  print( Output Type: $OutputType br);
  print( Start ALF: $StartALF br);
  print( Partition: $ALF_Partition br);
  print( ALF Step: $ALF_Step br);
}

//
// Verify parameter values
//
print(H2Processing an $InputType upload/H2br);

//
//  Log an attempted posting (user  host)
//
if