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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dpa-bugs at aegee dot org
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 21:01:35 2025 UTC