|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-11-06 14:52 UTC] sniper@php.net
[2003-11-07 07:45 UTC] didou@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 21:00:01 2025 UTC |
Description: ------------ PHP is compiled as an Apache 1.3 DSO; ./configure --with-apxs=/path/to/apxs --with-gd --with-zlib-dir=/path/to/dir I just upgraded the PHP engine from 3.0.x to 4.3.4 and I'm debugging the php3 code. According to http://php.net/imagepsloadfont, imagepsloadfont() is a built-in function, so I don't understand the Fatal Error. Here is the line from my apache log: [Wed Nov 5 18:33:04 2003] [error] PHP Fatal error: Call to undefined function: imagepsloadfont() in /path/to/chart.inc on line 322 Reproduce code: --------------- Here is line 322 of chart.inc: -------------------------------------- 313 function render ($log = false, $cache = false) { if(!$this->is_chart) return false; $this->rescale(); if ($log) $this->log = $log; 322 $fgc = imagepsloadfont(_fontpath . "/type1/FGC_____.pfb"); $im = imagecreate($this->x, $this->y); $bgcolor = ImageColorAllocate($im, 255, 255, 255); $fgcolor[0] = ImageColorAllocate($im, 0, 0, 0); $fgcolor[1] = ImageColorAllocate($im, 0, 0, 255); $hicolor = ImageColorAllocate($im, 255, 0, 0); $bdcolor = ImageColorAllocate($im, 229, 227, 204); 330 $gridcolor = ImageColorAllocate($im, 192, 192, 192); --------------------------------- Also: --------------------------------- 15 define('_fontpath', '/path/to/fonts'); --------------------------------- Expected result: ---------------- I expect the code to make it through the engine without a Fatal Error. The function is a built-in so I don't see how it would be undefined. Actual result: -------------- Here is the line from my apache log: [Wed Nov 5 18:33:04 2003] [error] PHP Fatal error: Call to undefined function: imagepsloadfont() in /path/to/chart.inc on line 322