Bug #81694 [NEW]: DOMDocument is not available on 7.4 with configure --disable-all --with-libxml
| From: | divinity76 at gmail dot com | Date: | Fri, 03 Dec 2021 15:12:24 +0000 |
| Subject: | Bug #81694 [NEW]: DOMDocument is not available on 7.4 with configure --disable-all --with-libxml | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-238138@lists.php.net to get a copy of this message | ||
From: divinity76 at gmail dot com
Operating system: Amazon Linux 2 (RHEL-like)
PHP version: 7.4.26
Package: *XML functions
Bug Type: Bug
Bug description:DOMDocument is not available on 7.4 with configure --disable-all --with-libxml
Description:
------------
when compiling PHP7.4 like this:
rm -rf php-src && \
git clone -b 'PHP-7.4' --depth 1 https://github.com/php/php-src.git &&
\
cd 'php-src' && \
./buildconf && \
./configure --disable-all --disable-cgi --enable-cli --with-libxml && \
make clean && \
make -j $(nproc) && \
rm -rfv ../php && \
cp -v ./sapi/cli/php ../php
the resulting php binary does not have DOMDocument available.. i'm
pretty sure DOMDocument is supposed to be there when --with-libxml is
provided? i guess its a bug with the combo --disable-all + --with-libxml
?
Test script:
---------------
./php -r 'new DOMDocument;'
Expected result:
----------------
(blank)
Actual result:
--------------
[root@ip-192-168-1-1 php]# cat compile_bugreport.sh
yum install autoconf bison re2c libxml2 gcc && \
rm -rf php-src && \
git clone -b 'PHP-7.4' --depth 1 https://github.com/php/php-src.git &&
\
cd 'php-src' && \
./buildconf && \
./configure --disable-all --disable-cgi --enable-cli --with-libxml && \
make clean && \
make -j $(nproc) && \
rm -rfv ../php && \
cp -v ./sapi/cli/php ../php
[root@ip-192-168-1-1 php]# ./php -r 'new DOMDocument;'
Fatal error: Uncaught Error: Class 'DOMDocument' not found in Command
line code:1
Stack trace:
#0 {main}
thrown in Command line code on line 1
--
Edit bug report at https://bugs.php.net/bug.php?id=81694&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81694&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81694&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81694&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81694&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81694&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81694&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81694&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81694&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81694&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81694&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81694&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81694&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81694&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81694&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81694&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81694&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81694&r=mysqlcfg