#19741 [NoF->Opn]: Path no longer works in unlink, pdf_open_file

From: Date: Mon, 21 Oct 2002 14:26:38 +0000
Subject: #19741 [NoF->Opn]: Path no longer works in unlink, pdf_open_file
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-22966@lists.php.net to get a copy of this message
 ID:               19741
 User updated by:  scott@meikohou.com
 Reported By:      scott@meikohou.com
-Status:           No Feedback
+Status:           Open
 Bug Type:         Apache2 related
 Operating System: linux  2.4.18
-PHP Version:      4.2.3
+PHP Version:      4.2.3 and CVS Snap
 New Comment:

Please check


Previous Comments:
------------------------------------------------------------------------

[2002-10-19 01:00:05] php-bugs@lists.php.net

No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2002-10-07 10:44:49] brad@brad-x.com

CVS Snapshot had no impact.

------------------------------------------------------------------------

[2002-10-03 19:35:45] sniper@php.net

Please try using this CVS snapshot:

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

------------------------------------------------------------------------

[2002-10-03 18:39:34] scott@meikohou.com

on further examination it appears only 
pdf_open_file($pdf, "somefile.pdf"); 
does not work and must be substituted with
pdf_open_file($pdf, "$documentroot/somefile.pdf");

(or the smart example) 

i took the liberty of checking with pdf.c and it doesnt appear to be
any different.

------------------------------------------------------------------------

[2002-10-03 18:26:38] pkmail1@genion.de

A smarter variant of the workaround is to use
file_exists(realpath('somefile.pdf'));
which works quite fine on Apache 2.0.40

Philipp

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/19741

-- 
Edit this bug report at http://bugs.php.net/?id=19741&edit=1



Thread (9 messages)

« previous php.bugs (#22966) next »