#26147 [Opn->Ver]: PHP Fatal error: Call to undefined function: imagepsloadfont() in /XXX/X.php

From: Date: Thu, 06 Nov 2003 19:52:56 +0000
Subject: #26147 [Opn->Ver]: PHP Fatal error: Call to undefined function: imagepsloadfont() in /XXX/X.php
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969356878@lists.php.net to get a copy of this message
ID: 26147 Updated by: sniper@php.net Reported By: rwh at lim dot com -Status: Open +Status: Verified -Bug Type: GD related +Bug Type: Documentation problem Operating System: RH9 PHP Version: 4.3.4 New Comment: You need to compile PHP with --with-t1lib option. Manual pages for these functions should mention this better. Previous Comments: ------------------------------------------------------------------------ [2003-11-05 23:39:20] rwh at lim dot com 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26147&edit=1

« previous php.doc (#969356878) next »