php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81484 libgd-2.3.3 does not provide GD_FLIP_VERTICAL macro
Submitted: 2021-09-27 20:06 UTC Modified: 2021-09-27 20:50 UTC
From: dpa-bugs at aegee dot org Assigned: cmb (profile)
Status: Not a bug Package: *Compile Issues
PHP Version: 7.4.24 OS:
Private report: No CVE-ID: None
 [2021-09-27 20:06 UTC] dpa-bugs at aegee dot org
Description:
------------
Php can be configured with external or internal gd.  External libdb-2.3.0 provides the macros 

#define GD_FLIP_HORINZONTAL 1
#define GD_FLIP_VERTICAL 2
#define GD_FLIP_BOTH 3


External libgd-2.3.3 does not provide these macros: https://github.com/libgd/libgd/blob/master/src/gd.h

When the macros are not provided, php fails to compile with external libgd.

Expected result:
----------------
If the compilation is going to fail, this must be checked during ./configure. 

I do not understand libgd, but php shall be able to use also external gd-2.3.3.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-09-27 20:50 UTC] cmb@php.net
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: cmb
 [2021-09-27 20:50 UTC] cmb@php.net
This has already been fixed in libgd[1].

[1] <https://github.com/libgd/libgd/pull/766>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 09:01:26 2024 UTC