Skip to content

Commit a70b638

Browse files
committed
Merge branch 'PHP-8.3'
2 parents 21d3662 + 2d79789 commit a70b638

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cmake/ext/exif/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,13 @@ target_sources(
3434
)
3535

3636
target_compile_definitions(php_exif PRIVATE ZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
37+
38+
# Exif extension optionally depends on the mbstring extension when decoding
39+
# multibyte data in EXIF tags.
40+
# See: https://www.php.net/manual/en/exif.requirements.php
41+
# TODO: Inconsistent behavior between Windows and other systems. Does Windows
42+
# really need this extension always enabled or is it optional? C code doesn't
43+
# have this condition reflected properly.
44+
if(EXT_MBSTRING)
45+
add_dependencies(php_exif php_mbstring)
46+
endif()

0 commit comments

Comments
 (0)