Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
aports
aports
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 650
    • Issues 650
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 212
    • Merge Requests 212
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • alpine
  • aportsaports
  • Issues
  • #8299

Closed
Open
Opened Dec 14, 2017 by Borys Borysenko@bborysenko

php7 | 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)
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
Dec 27, 2017
Due date
Dec 27, 2017
Reference: alpine/aports#8299