ID:               26635
 User updated by:  choinet at rocketmail dot com
 Reported By:      choinet at rocketmail dot com
-Status:           Closed
+Status:           Open
 Bug Type:         GD related
 Operating System: Windows XP
-PHP Version:      4CVS-2003-12-18
+PHP Version:      4CVS-2003-12-24
 New Comment:

sniper states that the bug has been fixed and such changes should be
reflected within the STABLE CVS in due time. However, there must have
been a mistake in the determination of the status. If he/she is
referring to the initial fix that has been made by iliaa, I am still
reporting problems with that, for I am sure that such changes have been
reflected in the latest snapshot, and it has been a little over a week
now since word of the fix. This seems to be the case, as there, indeed,
has been a change in the CVS to accomodate relative pathnames.

However, the fix is still incomplete, as one may not directly list the
complete relative pathname of the fontfile, only 'filename' (instead of
'filename.ext'). This is a problem if the filename does not have the
extension .pfa, .pfb, or .ttf (which I saw from the source code in
gdft.c). In addition, there is no way to open a fontfile named 'arial',
for example, if it does not have a file extension. Again, the other
three extensions that can be opened must be referred to by the basename
without the extension.

This problem is reproducible by using imagettftext(font resource, font
size, font angle, x-coordinate, y-coordinate, color resource, fontfile,
"Hello World"); where the file is named 'arial.ttf' and the argument
pathname is 'arial.ttf', or where the file is named 'arial' and the
argument pathname is 'arial' as well.

I would appreciate it if one of the PHP developers clarified whether
the STABLE CVS snapshots do not, in fact, reflect any pertinent fixes,
whether the bug will be fixed later, or if it simply cannot be fixed at
all as well as verified the existence of the problem in either of these
two instances. And trust me, this report will not be opened again once
the issue is cleared up.


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

[2003-12-20 15:18:59] choinet at rocketmail dot com

Please update the snapshots.

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

[2003-12-18 20:54:09] [EMAIL PROTECTED]

There is no bug here, propably the snapshots are not current.
Please don't reopen this anymore.



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

[2003-12-18 20:04:09] choinet at rocketmail dot com

Just want to add that I am using the PHP 4.3.5-DEV (Built On: Dec 18,
2003 21:30 GMT), and that the PHP installation is clean (php4ts.dll,
php.ini are from the latest CVS).

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

[2003-12-18 19:55:35] choinet at rocketmail dot com

I am now using the latest STABLE CVS, and I still encounter problems
with using the full filename 'arial.ttf' in place of 'arial'. I do
believe that this is a bug, because PHP 4.3.4 seems to accept either
format on a Linux installation.

The naming convention issue is still lingering for the STABLE CVS
version, although I am not sure whether or not that is a PHP issue or
one that is related to the filesystem, for the same problem occurs on
Linux when the absolute path has spaces in it.

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

[2003-12-18 17:52:59] [EMAIL PROTECTED]

Using latest STABLE CVS (PHP 4.3.5-dev) this works just fine.
You should cleanup your machine out of all existing php related files,
e.g. php4ts.dll and get the latest snapshot.


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

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

Reply via email to