php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20839 no support for XPM format
Submitted: 2002-12-05 15:49 UTC Modified: 2002-12-05 15:50 UTC
From: gilles_gros at yahoo dot com Assigned:
Status: Closed Package: GD related
PHP Version: 4.3.0RC2 OS: Linux
Private report: No CVE-ID: None
 [2002-12-05 15:49 UTC] gilles_gros at yahoo dot com
After spending quite a time compiling porperly PHP with XPM, GD and PNG support,

the function imagecreatefromxpm is still not working
-- My mistake : wrong error display options --

The code says :

PHP_FUNCTION(imagecreatefromxpm)
{
    /*
#ifdef HAVE_GD_XPM
    _php_image_create_from(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_XPM, "XPM", gdImageCreateFromXpm, NULL);
#else
    */
    php_error_docref(NULL TSRMLS_CC, E_WARNING, "No XPM support in this PHP build");
    RETURN_FALSE;
    /*
#endif
    */ 
} 

So the function is never properly define.
So either fix the doc or code the function.

It is the exact same in php-4.2.3, php-4.1.2 and php-4.0.6

Was XPM support one day really supported ?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-05 15:50 UTC] derick@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

It was jus fixed (yesterday), so please try a snapshot and reopen if the bug persists.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 20:01:36 2025 UTC