-
Notifications
You must be signed in to change notification settings - Fork 7.9k
php-zlib-for-getimagesize.patch #4681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: PHP-8.0
Are you sure you want to change the base?
Conversation
Tested on OSX:
|
Tested on Linux:
|
@glensc Aren't you testing a statically built zlib extension in both cases there? |
@nikic thanks, I was thinking there's something missing! @@ -11,7 +11,7 @@
--with-config-file-path=$prefix \
--with-config-file-scan-dir=$prefix/conf.d \
--disable-all \
- --with-zlib \
+ --with-zlib=shared \
--config-cache
make
./sapi/cli/php --ini but can't put the PR back to WIP it seems... |
It's not obvious to me that this will work correctly in all cases, unless there is something that guarantees that Line 9 in 395e87d
Possibly the better way to go about this is to include a separate PKG_CHECK_MODULES for zlib in the ext/standard config.m4, so zlib availability here is checked independently of the zlib PHP extension. |
This comment was marked as resolved.
This comment was marked as resolved.
@nikic I think the |
also, as I understood, there was some cleanup of
right? |
These should be also cleaned up (moved to standard) then:
Altho these should be just removed:
|
This can be used for testing, but some cleanups are needed... especially as
|
Not quite. Both |
Dropped one of the |
but can you give direction to how to proceed here? I see it should be:
but due technical reasons |
fd57df0
to
fe2db8a
Compare
@nikic I won't assign this to you, but since you have some cursory familiarity with this patch, could you give it a fresh read please and do words about it ... |
What's the status of this PR? It looks like it's still waiting for review? If this is a bug, should it target the PHP-8.0 branch instead of master? |
make getimagesize() work for compressed .swf without static zlib extension. php-common was already linked with -lz
fe2db8a
to
d95070f
Compare
Rebased for |
Looks like my rebasing has still no interest in this... |
It still valid, zlib hard to make shared |
Make
getimagesize()
work for compressed .swf without static zlib extension.In PLD LInux
php-common
was already linked with-lz
.This is long standing bug why (some) distros have to compile extensions like
filter
orzlib
static:As the missing symbol comes from
libz
not fromext-zlib
, and-lz
is present by default, the ifdef can just be removed.Import PLD Linux patch:
Changes: