From f2a3848349ed7906aada095259bfe2565f2d8f59 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 19 Jun 2021 07:25:39 +0200 Subject: update to 2.5.0 raise dependency on PHP 8.0 --- .gitignore | 9 ++ PHPINFO | 7 ++ REFLECTION | 326 +++++++++++++++++++++++++++--------------------------- php-pecl-sdl.spec | 37 +++---- 4 files changed, 195 insertions(+), 184 deletions(-) create mode 100644 .gitignore create mode 100644 PHPINFO diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..01f0400 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +clog +package-*.xml +*.tgz +*.tar.bz2 +*.tar.gz +*.tar.xz +*.tar.xz.asc +*.src.rpm +*/*rpm diff --git a/PHPINFO b/PHPINFO new file mode 100644 index 0000000..6160b84 --- /dev/null +++ b/PHPINFO @@ -0,0 +1,7 @@ + +SDL + +SDL support => enabled +SDL module version => 2.5.0 +SDL2 headers version => 2.0.14 +SDL2 library version => 2.0.14 diff --git a/REFLECTION b/REFLECTION index da7104a..aeeaaa2 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #162 SDL version 2.4.0 ] { +Extension [ extension #84 SDL version 2.5.0 ] { - Constants [738] { Constant [ int SDL_BLENDMODE_NONE ] { 0 } @@ -716,11 +716,11 @@ Extension [ extension #162 SDL version 2.4.0 ] { Constant [ int SDL_PREALLOC ] { 1 } Constant [ int SDL_RLEACCEL ] { 2 } Constant [ int SDL_DONTFREE ] { 4 } - Constant [ int SDL_COMPILEDVERSION ] { 2012 } + Constant [ int SDL_COMPILEDVERSION ] { 2014 } Constant [ int SDL_MAJOR_VERSION ] { 2 } Constant [ int SDL_MINOR_VERSION ] { 0 } - Constant [ int SDL_PATCHLEVEL ] { 12 } - Constant [ string SDL_REVISION ] { hg-13609:34cc7d3b69d3 } + Constant [ int SDL_PATCHLEVEL ] { 14 } + Constant [ string SDL_REVISION ] { hg-14525:e52d96ea04fc } Constant [ int SDL_WINDOW_FULLSCREEN ] { 1 } Constant [ int SDL_WINDOW_OPENGL ] { 2 } Constant [ int SDL_WINDOW_SHOWN ] { 4 } @@ -745,7 +745,7 @@ Extension [ extension #162 SDL version 2.4.0 ] { Function [ function SDL_Init ] { - Parameters [1] { - Parameter #0 [ $flags ] + Parameter #0 [ $flags = ] } } Function [ function SDL_InitSubSystem ] { @@ -917,8 +917,8 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [3] { Parameter #0 [ SDL_Window $window ] - Parameter #1 [ &$x ] - Parameter #2 [ &$y ] + Parameter #1 [ &$x = ] + Parameter #2 [ &$y = ] } } Function [ function SDL_SetWindowSize ] { @@ -933,8 +933,8 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [3] { Parameter #0 [ SDL_Window $window ] - Parameter #1 [ &$x ] - Parameter #2 [ &$y ] + Parameter #1 [ &$x = ] + Parameter #2 [ &$y = ] } } Function [ function SDL_SetWindowMinimumSize ] { @@ -949,8 +949,8 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [3] { Parameter #0 [ SDL_Window $window ] - Parameter #1 [ &$x ] - Parameter #2 [ &$y ] + Parameter #1 [ &$x = ] + Parameter #2 [ &$y = ] } } Function [ function SDL_SetWindowMaximumSize ] { @@ -965,8 +965,8 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [3] { Parameter #0 [ SDL_Window $window ] - Parameter #1 [ &$x ] - Parameter #2 [ &$y ] + Parameter #1 [ &$x = ] + Parameter #2 [ &$y = ] } } Function [ function SDL_SetWindowBordered ] { @@ -988,7 +988,7 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [3] { Parameter #0 [ SDL_Window $window ] Parameter #1 [ array $rects ] - Parameter #2 [ $numrect ] + Parameter #2 [ $numrect = ] } } Function [ function SDL_SetWindowGrab ] { @@ -1152,8 +1152,8 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [4] { Parameter #0 [ $renderer ] Parameter #1 [ $texture ] - Parameter #2 [ SDL_Rect or NULL $srcrect ] - Parameter #3 [ SDL_Rect or NULL $dstrect ] + Parameter #2 [ ?SDL_Rect $srcrect ] + Parameter #3 [ ?SDL_Rect $dstrect ] } } Function [ function SDL_RenderCopyEx ] { @@ -1161,10 +1161,10 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [7] { Parameter #0 [ $renderer ] Parameter #1 [ $texture ] - Parameter #2 [ SDL_Rect or NULL $srcrect ] - Parameter #3 [ SDL_Rect or NULL $dstrect ] + Parameter #2 [ ?SDL_Rect $srcrect ] + Parameter #3 [ ?SDL_Rect $dstrect ] Parameter #4 [ $angle ] - Parameter #5 [ SDL_Point or NULL $center ] + Parameter #5 [ ?SDL_Point $center ] Parameter #6 [ $flip ] } } @@ -1189,7 +1189,7 @@ Extension [ extension #162 SDL version 2.4.0 ] { Parameter #1 [ $x1 ] Parameter #2 [ $y1 ] Parameter #3 [ $x2 ] - Parameter #4 [ $y2 ] + Parameter #4 [ $y2 = ] } } Function [ function SDL_RenderPresent ] { @@ -1249,8 +1249,8 @@ Extension [ extension #162 SDL version 2.4.0 ] { Parameter #3 [ $depth ] Parameter #4 [ $Rmask ] Parameter #5 [ $Gmask ] - Parameter #6 [ $Bmask ] - Parameter #7 [ $Amask ] + Parameter #6 [ $Bmask = ] + Parameter #7 [ $Amask = ] } } Function [ function SDL_FreeSurface ] { @@ -1311,9 +1311,9 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [4] { Parameter #0 [ SDL_Surface $src ] - Parameter #1 [ SDL_rect or NULL $srcrect ] + Parameter #1 [ ?SDL_rect $srcrect ] Parameter #2 [ SDL_Surface $dst ] - Parameter #3 [ SDL_rect or NULL &$dstrect ] + Parameter #3 [ ?SDL_rect &$dstrect = ] } } Function [ function SDL_LowerBlit ] { @@ -1329,9 +1329,9 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [4] { Parameter #0 [ SDL_Surface $src ] - Parameter #1 [ SDL_rect or NULL $srcrect ] + Parameter #1 [ ?SDL_rect $srcrect ] Parameter #2 [ SDL_Surface $dst ] - Parameter #3 [ SDL_rect or NULL &$dstrect ] + Parameter #3 [ ?SDL_rect &$dstrect = ] } } Function [ function SDL_LowerBlitScaled ] { @@ -1347,9 +1347,9 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [4] { Parameter #0 [ SDL_Surface $src ] - Parameter #1 [ SDL_rect or NULL $srcrect ] + Parameter #1 [ ?SDL_rect $srcrect ] Parameter #2 [ SDL_Surface $dst ] - Parameter #3 [ SDL_rect or NULL &$dstrect ] + Parameter #3 [ ?SDL_rect &$dstrect = ] } } Function [ function SDL_SaveBMP_RW ] { @@ -1357,7 +1357,7 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [3] { Parameter #0 [ SDL_Surface $surface ] Parameter #1 [ SDL_RWops &$rwops ] - Parameter #2 [ $freedst ] + Parameter #2 [ $freedst = ] } } Function [ function SDL_SaveBMP ] { @@ -1379,7 +1379,7 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [3] { Parameter #0 [ SDL_Surface $surface ] Parameter #1 [ $flag ] - Parameter #2 [ $key ] + Parameter #2 [ $key = ] } } Function [ function SDL_GetColorKey ] { @@ -1454,7 +1454,7 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [3] { Parameter #0 [ SDL_Surface $surface ] Parameter #1 [ SDL_PixelFormat $format ] - Parameter #2 [ $flags ] + Parameter #2 [ $flags = ] } } Function [ function SDL_ConvertSurfaceFormat ] { @@ -1462,7 +1462,7 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [3] { Parameter #0 [ SDL_Surface $surface ] Parameter #1 [ $format ] - Parameter #2 [ $flags ] + Parameter #2 [ $flags = ] } } Function [ function SDL_ConvertPixels ] { @@ -1551,7 +1551,7 @@ Extension [ extension #162 SDL version 2.4.0 ] { Parameter #0 [ $flags ] Parameter #1 [ $title ] Parameter #2 [ $message ] - Parameter #3 [ SDL_Window or NULL $window ] + Parameter #3 [ ?SDL_Window $window = ] } } Function [ function SDL_ShowMessageBox ] { @@ -1605,8 +1605,8 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [4] { Parameter #0 [ SDL_Palette $palette ] Parameter #1 [ array $colors ] - Parameter #2 [ $first ] - Parameter #3 [ $ncolors ] + Parameter #2 [ $first = ] + Parameter #3 [ $ncolors = ] } } Function [ function SDL_AllocFormat ] { @@ -1723,7 +1723,7 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [2] { Parameter #0 [ SDL_Window $window ] - Parameter #1 [ SDL_GLContext $context ] + Parameter #1 [ SDL_GLContext $context = ] } } Function [ function SDL_GL_GetCurrentWindow ] { @@ -1851,7 +1851,7 @@ Extension [ extension #162 SDL version 2.4.0 ] { Function [ function SDL_VideoInit ] { - Parameters [1] { - Parameter #0 [ $drivername ] + Parameter #0 [ $drivername = ] } } Function [ function SDL_VideoQuit ] { @@ -1912,7 +1912,7 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [3] { Parameter #0 [ $displayIndex ] Parameter #1 [ SDL_DisplayMode $desired ] - Parameter #2 [ &$closest ] + Parameter #2 [ &$closest = ] } } Function [ function SDL_IsScreenSaverEnabled ] { @@ -1933,8 +1933,8 @@ Extension [ extension #162 SDL version 2.4.0 ] { Function [ function SDL_GetPowerInfo ] { - Parameters [2] { - Parameter #0 [ &$secs ] - Parameter #1 [ &$pct ] + Parameter #0 [ &$secs = ] + Parameter #1 [ &$pct = ] } } Function [ function SDL_GetPlatform ] { @@ -1950,8 +1950,8 @@ Extension [ extension #162 SDL version 2.4.0 ] { Function [ function SDL_GetKeyboardState ] { - Parameters [2] { - Parameter #0 [ &$numkeys ] - Parameter #1 [ $allkeys ] + Parameter #0 [ &$numkeys = ] + Parameter #1 [ $allkeys = ] } } Function [ function SDL_GetModState ] { @@ -2094,15 +2094,15 @@ Extension [ extension #162 SDL version 2.4.0 ] { Function [ function SDL_GetMouseState ] { - Parameters [2] { - Parameter #0 [ &$x ] - Parameter #1 [ &$y ] + Parameter #0 [ &$x = ] + Parameter #1 [ &$y = ] } } Function [ function SDL_GetRelativeMouseState ] { - Parameters [2] { - Parameter #0 [ &$x ] - Parameter #1 [ &$y ] + Parameter #0 [ &$x = ] + Parameter #1 [ &$y = ] } } Function [ function SDL_WarpMouseInWindow ] { @@ -2316,7 +2316,7 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [2] { Parameter #0 [ $fp ] - Parameter #1 [ $autoclose ] + Parameter #1 [ $autoclose = ] } } Function [ function SDL_RWFromMem ] { @@ -2330,7 +2330,7 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [2] { Parameter #0 [ $buf ] - Parameter #1 [ $size ] + Parameter #1 [ $size = ] } } Function [ function SDL_RWsize ] { @@ -2359,7 +2359,7 @@ Extension [ extension #162 SDL version 2.4.0 ] { Parameter #0 [ SDL_RWops $RWops ] Parameter #1 [ &$buffer ] Parameter #2 [ $size ] - Parameter #3 [ $number ] + Parameter #3 [ $number = ] } } Function [ function SDL_RWwrite ] { @@ -2367,8 +2367,8 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [4] { Parameter #0 [ SDL_RWops $RWops ] Parameter #1 [ $buffer ] - Parameter #2 [ $size ] - Parameter #3 [ $number ] + Parameter #2 [ $size = ] + Parameter #3 [ $number = ] } } Function [ function SDL_RWclose ] { @@ -2483,9 +2483,9 @@ Extension [ extension #162 SDL version 2.4.0 ] { } - Properties [3] { - Property [ public $type ] - Property [ public $key ] - Property [ public $motion ] + Property [ public $type = NULL ] + Property [ public $key = NULL ] + Property [ public $motion = NULL ] } - Methods [2] { @@ -2593,9 +2593,9 @@ Extension [ extension #162 SDL version 2.4.0 ] { } - Properties [3] { - Property [ public $r ] - Property [ public $g ] - Property [ public $b ] + Property [ public $r = 0 ] + Property [ public $g = 0 ] + Property [ public $b = 0 ] } - Methods [2] { @@ -2630,9 +2630,9 @@ Extension [ extension #162 SDL version 2.4.0 ] { } - Properties [3] { - Property [ public $flags ] - Property [ public $buttonid ] - Property [ public $text ] + Property [ public $flags = 0 ] + Property [ public $buttonid = 0 ] + Property [ public $text = 0 ] } - Methods [2] { @@ -2668,13 +2668,13 @@ Extension [ extension #162 SDL version 2.4.0 ] { } - Properties [7] { - Property [ public $flags ] - Property [ public $title ] - Property [ public $message ] - Property [ public $window ] - Property [ public $numbuttons ] - Property [ public $buttons ] - Property [ public $colors ] + Property [ public $flags = 0 ] + Property [ public $title = NULL ] + Property [ public $message = NULL ] + Property [ public $window = false ] + Property [ public $numbuttons = 0 ] + Property [ public $buttons = NULL ] + Property [ public $colors = NULL ] } - Methods [3] { @@ -2684,9 +2684,9 @@ Extension [ extension #162 SDL version 2.4.0 ] { Parameter #0 [ $flags ] Parameter #1 [ $title ] Parameter #2 [ $message ] - Parameter #3 [ array $buttons ] - Parameter #4 [ array $colors ] - Parameter #5 [ SDL_Window $parentwindow ] + Parameter #3 [ array $buttons = ] + Parameter #4 [ array $colors = ] + Parameter #5 [ SDL_Window $parentwindow = ] } } @@ -3007,10 +3007,10 @@ Extension [ extension #162 SDL version 2.4.0 ] { } - Properties [4] { - Property [ public $r ] - Property [ public $g ] - Property [ public $b ] - Property [ public $a ] + Property [ public $r = 0 ] + Property [ public $g = 0 ] + Property [ public $b = 0 ] + Property [ public $a = 0 ] } - Methods [2] { @@ -3044,10 +3044,10 @@ Extension [ extension #162 SDL version 2.4.0 ] { } - Properties [4] { - Property [ public $ncolors ] - Property [ public $version ] - Property [ public $refcount ] - Property [ public $colors ] + Property [ public $ncolors = 0 ] + Property [ public $version = 0 ] + Property [ public $refcount = 0 ] + Property [ public $colors = NULL ] } - Methods [9] { @@ -3109,8 +3109,8 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [3] { Parameter #0 [ array $colors ] - Parameter #1 [ $first ] - Parameter #2 [ $ncolors ] + Parameter #1 [ $first = ] + Parameter #2 [ $ncolors = ] } } } @@ -3128,22 +3128,22 @@ Extension [ extension #162 SDL version 2.4.0 ] { } - Properties [16] { - Property [ public $format ] - Property [ public $BitsPerPixel ] - Property [ public $BytesPerPixel ] - Property [ public $Rmask ] - Property [ public $Gmask ] - Property [ public $Bmask ] - Property [ public $Amask ] - Property [ public $Rloss ] - Property [ public $Gloss ] - Property [ public $Bloss ] - Property [ public $Aloss ] - Property [ public $Rshift ] - Property [ public $Gshift ] - Property [ public $Bshift ] - Property [ public $Ashift ] - Property [ public $palette ] + Property [ public $format = 0 ] + Property [ public $BitsPerPixel = 0 ] + Property [ public $BytesPerPixel = 0 ] + Property [ public $Rmask = 0 ] + Property [ public $Gmask = 0 ] + Property [ public $Bmask = 0 ] + Property [ public $Amask = 0 ] + Property [ public $Rloss = 0 ] + Property [ public $Gloss = 0 ] + Property [ public $Bloss = 0 ] + Property [ public $Aloss = 0 ] + Property [ public $Rshift = 0 ] + Property [ public $Gshift = 0 ] + Property [ public $Bshift = 0 ] + Property [ public $Ashift = 0 ] + Property [ public $palette = NULL ] } - Methods [8] { @@ -3227,9 +3227,9 @@ Extension [ extension #162 SDL version 2.4.0 ] { } - Properties [3] { - Property [ public $pitch ] - Property [ public $h ] - Property [ public $count ] + Property [ public $pitch = 0 ] + Property [ public $h = 0 ] + Property [ public $count = 0 ] } - Methods [9] { @@ -3313,20 +3313,20 @@ Extension [ extension #162 SDL version 2.4.0 ] { } - Properties [4] { - Property [ public $x ] - Property [ public $y ] - Property [ public $w ] - Property [ public $h ] + Property [ public $x = 0 ] + Property [ public $y = 0 ] + Property [ public $w = 0 ] + Property [ public $h = 0 ] } - Methods [8] { Method [ public method __construct ] { - Parameters [4] { - Parameter #0 [ int $x ] - Parameter #1 [ int $y ] - Parameter #2 [ int $w ] - Parameter #3 [ int $y ] + Parameter #0 [ int $x = ] + Parameter #1 [ int $y = ] + Parameter #2 [ int $w = ] + Parameter #3 [ int $y = ] } } @@ -3396,8 +3396,8 @@ Extension [ extension #162 SDL version 2.4.0 ] { } - Properties [2] { - Property [ public $x ] - Property [ public $y ] + Property [ public $x = 0 ] + Property [ public $y = 0 ] } - Methods [2] { @@ -3444,7 +3444,7 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [2] { Parameter #0 [ $fp ] - Parameter #1 [ $autoclose ] + Parameter #1 [ $autoclose = ] } } @@ -3460,13 +3460,13 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [2] { Parameter #0 [ $buf ] - Parameter #1 [ $size ] + Parameter #1 [ $size = ] } } } - Properties [1] { - Property [ public $type ] + Property [ public $type = 0 ] } - Methods [23] { @@ -3513,7 +3513,7 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [3] { Parameter #0 [ &$buffer ] Parameter #1 [ $size ] - Parameter #2 [ $number ] + Parameter #2 [ $number = ] } } @@ -3521,8 +3521,8 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [3] { Parameter #0 [ $buffer ] - Parameter #1 [ $size ] - Parameter #2 [ $number ] + Parameter #1 [ $size = ] + Parameter #2 [ $number = ] } } @@ -3641,9 +3641,9 @@ Extension [ extension #162 SDL version 2.4.0 ] { } - Properties [3] { - Property [ public $mode ] - Property [ public $colorKey ] - Property [ public $binarizationCutoff ] + Property [ public $mode = 0 ] + Property [ public $colorKey = 0 ] + Property [ public $binarizationCutoff = 0 ] } - Methods [2] { @@ -3693,13 +3693,13 @@ Extension [ extension #162 SDL version 2.4.0 ] { } - Properties [7] { - Property [ public $flags ] - Property [ public $w ] - Property [ public $h ] - Property [ public $pitch ] - Property [ public $format ] - Property [ public $clip_rect ] - Property [ public $pixels ] + Property [ public $flags = 0 ] + Property [ public $w = 0 ] + Property [ public $h = 0 ] + Property [ public $pitch = 0 ] + Property [ public $format = NULL ] + Property [ public $clip_rect = NULL ] + Property [ public $pixels = NULL ] } - Methods [30] { @@ -3712,8 +3712,8 @@ Extension [ extension #162 SDL version 2.4.0 ] { Parameter #3 [ $depth ] Parameter #4 [ $Rmask ] Parameter #5 [ $Gmask ] - Parameter #6 [ $Bmask ] - Parameter #7 [ $Amask ] + Parameter #6 [ $Bmask = ] + Parameter #7 [ $Amask = ] } } @@ -3767,18 +3767,18 @@ Extension [ extension #162 SDL version 2.4.0 ] { Method [ public method Blit ] { - Parameters [3] { - Parameter #0 [ SDL_rect or NULL $srcrect ] + Parameter #0 [ ?SDL_rect $srcrect ] Parameter #1 [ SDL_Surface $dst ] - Parameter #2 [ SDL_rect or NULL &$dstrect ] + Parameter #2 [ ?SDL_rect &$dstrect = ] } } Method [ public method UpperBlit ] { - Parameters [3] { - Parameter #0 [ SDL_rect or NULL $srcrect ] + Parameter #0 [ ?SDL_rect $srcrect ] Parameter #1 [ SDL_Surface $dst ] - Parameter #2 [ SDL_rect or NULL &$dstrect ] + Parameter #2 [ ?SDL_rect &$dstrect = ] } } @@ -3794,18 +3794,18 @@ Extension [ extension #162 SDL version 2.4.0 ] { Method [ public method BlitScaled ] { - Parameters [3] { - Parameter #0 [ SDL_rect or NULL $srcrect ] + Parameter #0 [ ?SDL_rect $srcrect ] Parameter #1 [ SDL_Surface $dst ] - Parameter #2 [ SDL_rect or NULL &$dstrect ] + Parameter #2 [ ?SDL_rect &$dstrect = ] } } Method [ public method UpperBlitScaled ] { - Parameters [3] { - Parameter #0 [ SDL_rect or NULL $srcrect ] + Parameter #0 [ ?SDL_rect $srcrect ] Parameter #1 [ SDL_Surface $dst ] - Parameter #2 [ SDL_rect or NULL &$dstrect ] + Parameter #2 [ ?SDL_rect &$dstrect = ] } } @@ -3821,9 +3821,9 @@ Extension [ extension #162 SDL version 2.4.0 ] { Method [ public method SoftStretch ] { - Parameters [3] { - Parameter #0 [ SDL_rect or NULL $srcrect ] + Parameter #0 [ ?SDL_rect $srcrect ] Parameter #1 [ SDL_Surface $dst ] - Parameter #2 [ SDL_rect or NULL &$dstrect ] + Parameter #2 [ ?SDL_rect &$dstrect = ] } } @@ -3831,7 +3831,7 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [2] { Parameter #0 [ SDL_RWops &$rwops ] - Parameter #1 [ $freedst ] + Parameter #1 [ $freedst = ] } } @@ -3853,7 +3853,7 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [2] { Parameter #0 [ $flag ] - Parameter #1 [ $key ] + Parameter #1 [ $key = ] } } @@ -3928,7 +3928,7 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [2] { Parameter #0 [ SDL_PixelFormat $format ] - Parameter #1 [ $flags ] + Parameter #1 [ $flags = ] } } @@ -3936,7 +3936,7 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [2] { Parameter #0 [ $format ] - Parameter #1 [ $flags ] + Parameter #1 [ $flags = ] } } } @@ -3954,10 +3954,10 @@ Extension [ extension #162 SDL version 2.4.0 ] { } - Properties [4] { - Property [ public $format ] - Property [ public $w ] - Property [ public $h ] - Property [ public $refresh_rate ] + Property [ public $format = 0 ] + Property [ public $w = 0 ] + Property [ public $h = 0 ] + Property [ public $refresh_rate = 0 ] } - Methods [2] { @@ -4020,13 +4020,13 @@ Extension [ extension #162 SDL version 2.4.0 ] { } - Properties [7] { - Property [ public $id ] - Property [ public $flags ] - Property [ public $x ] - Property [ public $y ] - Property [ public $w ] - Property [ public $h ] - Property [ public $title ] + Property [ public $id = 0 ] + Property [ public $flags = 0 ] + Property [ public $x = 0 ] + Property [ public $y = 0 ] + Property [ public $w = 0 ] + Property [ public $h = 0 ] + Property [ public $title = NULL ] } - Methods [44] { @@ -4171,8 +4171,8 @@ Extension [ extension #162 SDL version 2.4.0 ] { Method [ public method GetPosition ] { - Parameters [2] { - Parameter #0 [ &$x ] - Parameter #1 [ &$y ] + Parameter #0 [ &$x = ] + Parameter #1 [ &$y = ] } } @@ -4187,8 +4187,8 @@ Extension [ extension #162 SDL version 2.4.0 ] { Method [ public method GetSize ] { - Parameters [2] { - Parameter #0 [ &$w ] - Parameter #1 [ &$h ] + Parameter #0 [ &$w = ] + Parameter #1 [ &$h = ] } } @@ -4203,8 +4203,8 @@ Extension [ extension #162 SDL version 2.4.0 ] { Method [ public method GetMinimumSize ] { - Parameters [2] { - Parameter #0 [ &$x ] - Parameter #1 [ &$y ] + Parameter #0 [ &$x = ] + Parameter #1 [ &$y = ] } } @@ -4219,8 +4219,8 @@ Extension [ extension #162 SDL version 2.4.0 ] { Method [ public method GetMaximumSize ] { - Parameters [2] { - Parameter #0 [ &$x ] - Parameter #1 [ &$y ] + Parameter #0 [ &$x = ] + Parameter #1 [ &$y = ] } } @@ -4242,7 +4242,7 @@ Extension [ extension #162 SDL version 2.4.0 ] { - Parameters [2] { Parameter #0 [ array $rects ] - Parameter #1 [ $numrect ] + Parameter #1 [ $numrect = ] } } @@ -4297,8 +4297,8 @@ Extension [ extension #162 SDL version 2.4.0 ] { Method [ public method GL_GetDrawableSize ] { - Parameters [2] { - Parameter #0 [ &$x ] - Parameter #1 [ &$y ] + Parameter #0 [ &$x = ] + Parameter #1 [ &$y = ] } } diff --git a/php-pecl-sdl.spec b/php-pecl-sdl.spec index de47a33..127bff4 100644 --- a/php-pecl-sdl.spec +++ b/php-pecl-sdl.spec @@ -1,6 +1,6 @@ # remirepo spec file for php-pecl-sdl # -# Copyright (c) 2013-2020 Remi Collet +# Copyright (c) 2013-2021 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -14,14 +14,16 @@ Summary: Simple DirectMedia Layer for PHP Name: %{?scl_prefix}php-pecl-sdl -Version: 2.4.0 +Version: 2.5.0 Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} License: PHP Group: Development/Languages URL: https://pecl.php.net/package/sdl Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz -BuildRequires: %{?scl_prefix}php-devel >= 7.4 +BuildRequires: make +BuildRequires: %{?dtsprefix}gcc +BuildRequires: %{?scl_prefix}php-devel >= 8.0 BuildRequires: %{?scl_prefix}php-pear BuildRequires: SDL2-devel @@ -42,24 +44,13 @@ Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{relea %if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} # Other third party repo stuff -%if "%{php_version}" > "7.2" -Obsoletes: php72u-pecl-%{pecl_name} <= %{version} -Obsoletes: php72w-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "7.3" -Obsoletes: php73-pecl-%{pecl_name} <= %{version} -Obsoletes: php73w-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "7.4" Obsoletes: php74-pecl-%{pecl_name} <= %{version} -Obsoletes: php74w-pecl-%{pecl_name} <= %{version} +%if "%{php_version}" > "8.0" +Obsoletes: php80-pecl-%{pecl_name} <= %{version} %endif +%if "%{php_version}" > "8.1" +Obsoletes: php81-pecl-%{pecl_name} <= %{version} %endif - -%if 0%{?fedora} < 20 && 0%{?rhel} < 7 -# filter private shared -%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$} -%{?filter_setup} %endif @@ -77,7 +68,7 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO mv %{pecl_name}-%{version} NTS cd NTS -sed -e 's/2.3.0/%{version}/' -i src/php_sdl.h +#sed -e 's/2.3.0/%{version}/' -i src/php_sdl.h # Sanity check, really often broken extver=$(sed -n '/#define PHP_SDL_VERSION/{s/.* "//;s/".*$//;p}' src/php_sdl.h) @@ -155,13 +146,13 @@ done : Minimal load test for NTS extension %{__php} -n -q \ -d extension=NTS/modules/%{pecl_name}.so \ - --modules | grep -i %{pecl_name} + --modules | grep -i '^%{pecl_name}$' %if %{with_zts} : Minimal load test for ZTS extension %{__ztsphp} -n -q \ -d extension=ZTS/modules/%{pecl_name}.so \ - --modules | grep -i %{pecl_name} + --modules | grep -i '^%{pecl_name}$' %endif @@ -199,6 +190,10 @@ fi %changelog +* Sat Jun 19 2021 Remi Collet - 2.5.0-1 +- update to 2.5.0 +- raise dependency on PHP 8.0 + * Mon Aug 24 2020 Remi Collet - 2.4.0-1 - update to 2.4.0 - drop patch merged upstream -- cgit