note 78245 added to function.tempnam

From: Date: Thu, 04 Oct 2007 10:17:33 +0000
Subject: note 78245 added to function.tempnam
Groups: php.notes 
Request: Send a blank email to php-notes+get-131072@lists.php.net to get a copy of this message
It seems that in between 5.2.2 and 5.2.4 tempnam() changed how it handles a relative path: In 5.2.2: $file=tempnam('tmpdownload', 'Ergebnis_'.date(Y.m.d).'_').'.pdf'; echo $file; tmpdownload/Ergebnis_20071004_xTfKzz.pdf In 5.2.4: $file=tempnam('tmpdownload', 'Ergebnis_'.date(Y.m.d).'_').'.pdf'; echo $file; /var/www/html/tmpdownload/Ergebnis_20071004_Xbn6PY.pdf This broke quite a lot of our webpages as we try to display those pdfs (and other files) via the webbrowser and the resulting URI is of course invalid and gets the user a 404 page. ---- Server IP: 212.124.37.9 Probable Submitter: 83.236.4.207 ---- Manual Page -- http://www.php.net/manual/en/function.tempnam.php Edit -- https://master.php.net/note/edit/78245 Del: integrated -- https://master.php.net/note/delete/78245/integrated Del: useless -- https://master.php.net/note/delete/78245/useless Del: bad code -- https://master.php.net/note/delete/78245/bad+code Del: spam -- https://master.php.net/note/delete/78245/spam Del: non-english -- https://master.php.net/note/delete/78245/non-english Del: in docs -- https://master.php.net/note/delete/78245/in+docs Del: other reasons-- https://master.php.net/note/delete/78245 Reject -- https://master.php.net/note/reject/78245 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#131072) next »