Commit 0462f49
committed
Fix GH-2201: Drop imagesx() return false description
As of PHP 8.0.0, GD images are objects, while previously they have been
resources. If incompatible objects are passed to respective GD
functions, that throws a `TypeError` which does not have to be
documented explicitly. If invalid resources have been passed, that
emitted `E_WARNING` and the functions returned `false`. In a perfect
world, we would document that for each function, but to be brief, we
just augment the respective language-snippet to express that valid `gd`
resources have been expected. Readers should be able to figure out the
detailed behavior (and would want to avoid passing invalid resources
anyway).1 parent 96bc008 commit 0462f49
2 files changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
962 | 962 | | |
963 | 963 | | |
964 | 964 | | |
965 | | - | |
| 965 | + | |
966 | 966 | | |
967 | 967 | | |
968 | 968 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
0 commit comments