php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #66492 imageflip example images don't match example code
Submitted: 2014-01-15 22:28 UTC Modified: 2016-06-14 15:45 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: sleeping at myperch dot org Assigned: cmb (profile)
Status: Not a bug Package: Documentation problem
PHP Version: 5.5.8 OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sleeping at myperch dot org
New email:
PHP Version: OS:

 

 [2014-01-15 22:28 UTC] sleeping at myperch dot org
Description:
------------
---
From manual page: http://www.php.net/function.imageflip
---

The first example is for vertical flipping but the example image is horizontally flipped. The second example is for horizontal flipping but the image is vertically flipped.

Either switch the images around, or the code blocks.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-06-14 15:45 UTC] cmb@php.net
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: cmb
 [2016-06-14 15:45 UTC] cmb@php.net
The documentation is correct (at least as it's now). The constants
might be misleading, though. IMG_FLIP_HORIZONTAL means flip in
horizontal direction, but not mirror on a horizontal axis.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 04:01:36 2025 UTC