[MacPorts] #69045: php83-gd: imagefontwidth and imagefontheight fail on valid GDFont

MacPorts noreply at macports.org
Fri Jan 5 21:54:27 UTC 2024


#69045: php83-gd: imagefontwidth and imagefontheight fail on valid GDFont
------------------------+------------------------
  Reporter:  jonaskohl  |      Owner:  ryandesign
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.8.1
Resolution:             |   Keywords:
      Port:  php83-gd   |
------------------------+------------------------

Comment (by jonaskohl):

 I get the following output:

 {{{
 % php83 sample.php
 9
 15
 PHP Fatal error:  Uncaught TypeError: imagefontwidth(): Argument #1
 ($font) must be of type GdFont|int, GdFont given in
 /Users/jonas/Desktop/sample.php:12
 Stack trace:
 #0 /Users/jonas/Desktop/sample.php(12): imagefontwidth(Object(GdFont))
 #1 {main}
   thrown in /Users/jonas/Desktop/sample.php on line 12

 Fatal error: Uncaught TypeError: imagefontwidth(): Argument #1 ($font)
 must be of type GdFont|int, GdFont given in
 /Users/jonas/Desktop/sample.php:12
 Stack trace:
 #0 /Users/jonas/Desktop/sample.php(12): imagefontwidth(Object(GdFont))
 #1 {main}
   thrown in /Users/jonas/Desktop/sample.php on line 12

 % port installed php83{,-gd}
 The following ports are currently installed:
   php83 @8.3.1_0+libedit (active)
   php83-gd @8.3.1_0 (active)
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/69045#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list