Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.1

Bug #15998 Patch does not work: tempnam returns NULL
Submitted: 2009-03-09 19:29 UTC
From: ktlacaelel Assigned: ktlacaelel
Status: Closed Package: File_CSV_DataSource (version 0.2.6)
PHP Version: 5.2.4 OS: windows xp, ubuntu
Roadmaps: 0.2.7    
Subscription  


 [2009-03-09 19:29 UTC] ktlacaelel (Kazuyoshi Tlacaelel)
Description: ------------ Reported by m...@omoo.de, Mar 04 (5 days ago) What steps will reproduce the problem? 1. install lib : SVN: $Id: DataSource.php 767 2009-02-23 14:17:07Z ktlacaelel $ 2. run 3. error What is the expected output? What do you see instead? WARNING in /Users/marcofrank/workspace_pdt2/weblibs_3rd/php5/File_CSV_DataSource-0.2.6/File_CSV_DataSource-0.2.6/DataSource.php 2158 fgetcsv() expects parameter 1 to be resource, boolean given WARNING in /Users/marcofrank/workspace_pdt2/weblibs_3rd/php5/File_CSV_DataSource-0.2.6/File_CSV_DataSource-0.2.6/DataSource.php 2169 fclose(): supplied argument is not a valid stream resource WARNING in /Users/marcofrank/workspace_pdt2/weblibs_3rd/php5/File_CSV_DataSource-0.2.6/File_CSV_DataSource-0.2.6/DataSource.php 2340 unlink() [function.unlink]: No such file or directory What version of the product are you using? On what operating system? php newest Please provide any additional information below. the problem lies here: $t_fname = tempnam(md5(''), __CLASS__ . '_'); (row 2311 : DataSource.php) $t_fname returns NULL. if I switch off the patch, all works fine: $res = fopen($this->_filename, 'r'); # $res = $this->_patch(); Expected result: ---------------- to get csv data as an array Actual result: -------------- script crashes when trying to store/read patch file

Comments

 [2009-03-09 19:31 UTC] ktlacaelel (Kazuyoshi Tlacaelel)
-Status: Open +Status: Closed -Assigned To: +Assigned To: ktlacaelel