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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
44 + 34 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 17:01:30 2024 UTC