Skip to content

Commit

Permalink
Merge pull request #2581 from remicollet/issue-2283
Browse files Browse the repository at this point in the history
use libphp on PHP 8+, else libphp7
  • Loading branch information
xrmx authored Nov 14, 2023
2 parents 6ecc981 + 14e5334 commit d15c291
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plugins/php/uwsgiplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
LDFLAGS.append('-L%s' % ld_run_path)
os.environ['LD_RUN_PATH'] = ld_run_path

LIBS = [os.popen(PHPPATH + ' --libs').read().rstrip(), '-lphp' + php_version]
# PHP8 and above does not add the version to the library
# name
if int(php_version) < 8:
LIBS = [os.popen(PHPPATH + ' --libs').read().rstrip(), '-lphp' + php_version]
else:
LIBS = [os.popen(PHPPATH + ' --libs').read().rstrip(), '-lphp']

phplibdir = os.environ.get('UWSGICONFIG_PHPLIBDIR')
if phplibdir:
Expand Down

0 comments on commit d15c291

Please sign in to comment.