Doc #80794 [NEW]: --enable-bcmath documentation incomplete

From: Date: Wed, 24 Feb 2021 12:02:26 +0000
Subject: Doc #80794 [NEW]: --enable-bcmath documentation incomplete
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-18590@lists.php.net to get a copy of this message
From: php4fan at gmail dot com Operating system: all PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:--enable-bcmath documentation incomplete Description: ------------ --- From manual page: https://php.net/bc.installation --- It says: "These functions are only available if PHP was configured with --enable-bcmath." So, I look at the output of phpinfo() on a particular installation of phpfpm 7.4 that is throwing "call to undefined function bcpow()" errors and I find: Configure Command: [.....] '--enable-bcmath=shared' [.....] So, that's confusing. There is a --enable-bcmath flag, yet the bc math functions are not available, and there is no "BC Math" section in phpinfo(). I guess I need to understand what "shared" means. For starters, I would expect to find more information at https://www.php.net/manual/en/bc.installation.php but there's nothing there. "These functions are only available if PHP was configured with --enable-bcmath. The Windows version of PHP has built-in support for this extension. You do not need to load any additional extensions in order to use these functions." The sentence "You do not need to load any additional extensions in order to use these functions" seems to refer only to Windows. What about linux? Do I need to load additional extensions there? So I think: let's look at the documentation about the "--enable-bcmath" configure flag. Maybe it explains what the value "shared" means. Perhaps it means that it allows to enable bcmath as a shared library-or-something, maybe an extension that can be loaded at runtime without recompiling. I don't know, let's look. So I found this: https://www.php.net/manual/en/configure.about.php "List of configure options". It's not listed there. It says: "Below is a partial list of configure options [...] Most configure options are listed in their appropriate locations on the extension reference pages and not here" Ok, so where is the "appropriate location on the extension reference pages"?? To me it looks like it should be here: https://php.net/bc.installation But again, nothing there. -- Edit bug report at https://bugs.php.net/bug.php?id=80794&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80794&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80794&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80794&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80794&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80794&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80794&r=support Expected behavior: https://bugs.php.net/fix.php?id=80794&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80794&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80794&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80794&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80794&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80794&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80794&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80794&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80794&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80794&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80794&r=mysqlcfg

« previous php.doc.bugs (#18590) next »