#26635 [Fbk->Opn]: imagettfbbox() & imagettftext() fontfile does not allow relative path

From: Date: Wed, 17 Dec 2003 22:56:29 +0000
Subject: #26635 [Fbk->Opn]: imagettfbbox() & imagettftext() fontfile does not allow relative path
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-52232@lists.php.net to get a copy of this message
 ID:               26635
 User updated by:  choinet at rocketmail dot com
 Reported By:      choinet at rocketmail dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         *Graphics related
 Operating System: Windows XP
 PHP Version:      4.3.4
 New Comment:

I just checked using PHP5 CVS (Built On: Dec 17, 2003 19:30 GMT), and
relative paths ('./arial' and 'arial') do work, but only without the
'.ttf' file extension. For example, 'arial.ttf' as the fontfile
argument does not work.

Absolute paths to the fontfile still do not work, neither in the MS-DOS
naming convention ('C:\Progra~1\Apache~1\Apache2\htdocs\arial.ttf') nor
in the general way ('C:\Program Files\Apache
Group\Apache2\htdocs\arial.ttf').


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

[2003-12-17 11:16:21] iliaa@php.net

if arial.ttf is inside C:\Program Files\Apache Group\Apache2\htdocs it
will try to open it.

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

[2003-12-16 23:50:39] choinet at rocketmail dot com

er wait, I get
C:\Program Files\Apache Group\Apache2\htdocs
(without the trailing backslash)

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

[2003-12-16 23:49:41] choinet at rocketmail dot com

I get
C:\Program Files\Apache Group\Apache2\htdocs\

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

[2003-12-16 18:37:27] iliaa@php.net

if you add echo getcwd(); to your script, what directory does it show?

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

[2003-12-16 16:49:08] choinet at rocketmail dot com

After checking, I determined that the problem with opening the fontfile
in the PHP 5 CVS version of imagettftext() occurs on both Apache 1 and
2 (both sapi modules).

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

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/26635

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


Thread (26 messages)

« previous php.bugs (#52232) next »