Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • aports aports
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 726
    • Issues 726
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 329
    • Merge requests 329
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • alpine
  • aportsaports
  • Issues
  • #8299
Closed
Open
Created Dec 14, 2017 by Borys Borysenko@bborysenko

php8 | undefined constant IMAGETYPE_SWC

php7 compiled without IMAGETYPE_SWC constant

https://github.com/php/php-src/blob/9221bd7f325f93badd7f06289e6e2e2b821e5856/ext/standard/image.c\#L89

➜  ~ docker run --rm -it alpine:3.7 sh
/ # apk add --no-cache php7
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
(1/8) Installing php7-common (7.1.12-r0)
(2/8) Installing ncurses-terminfo-base (6.0_p20170930-r0)
(3/8) Installing ncurses-terminfo (6.0_p20170930-r0)
(4/8) Installing ncurses-libs (6.0_p20170930-r0)
(5/8) Installing libedit (20170329.3.1-r3)
(6/8) Installing pcre (8.41-r1)
(7/8) Installing libxml2 (2.9.7-r0)
(8/8) Installing php7 (7.1.12-r0)
Executing busybox-1.27.2-r6.trigger
OK: 18 MiB in 19 packages
/ # php -a
Interactive shell

php > echo IMAGETYPE_SWC;
PHP Notice:  Use of undefined constant IMAGETYPE_SWC - assumed 'IMAGETYPE_SWC' in php shell code on line 1
IMAGETYPE_SWC

(from redmine: issue id 8299, created on 2017-12-14, closed on 2017-12-27)

  • Relations:
    • duplicates #7284 (closed)
  • Changesets:
    • Revision c8d008ad by Andy Postnikov on 2018-04-05T17:22:15Z:
community/php7: make zlib extension builtin

PHP lacks some functionality when zlib extension built dynamic.

Ref #8299 (https://bugs.alpinelinux.org/issues/8299)
Edited May 31, 2022 by Andy Postnikov
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking