Bug 829640 - Can not use bccomp (php)
Can not use bccomp (php)
Product: OpenShift Origin
Classification: Red Hat
Component: Containers (Show other bugs)
All Unspecified
low Severity low
: ---
: ---
Assigned To: Rob Millner
libra bugs
: Triaged
Depends On:
  Show dependency treegraph
Reported: 2012-06-07 03:38 EDT by mattias.ohlsson
Modified: 2015-05-14 18:55 EDT (History)
4 users (show)

See Also:
Fixed In Version: cartridge-php-5.3-0.94.1+
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-06-25 14:26:46 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description mattias.ohlsson 2012-06-07 03:38:20 EDT
Description of problem:
I can not use functions from BCMath.

Version-Release number of selected component (if applicable):
Unknown (openshift.redhat.com at 2012-06-07).

How reproducible:
Try to use a BCMath function, for example bccomp (http://php.net/manual/en/function.bccomp.php).

Steps to Reproduce:
1. Create a php file and add "echo bccomp('1', '2')" in it. 
2. Use a web browser to access the file.
Actual results:
A php error in logs/error_log (URL modified)
[Thu Jun 07 02:51:09 2012] [error] [client] PHP Fatal error:  Call to undefined function bccomp() in /var/lib/stickshift/[...]/runtime/repo/php/index.php on line 3, referer: http://[...].rhcloud.com/index.php

Expected results:
-1 returned from bccomp. 

Additional info:
bccomp need the php-bcmath package.
Comment 1 Rob Millner 2012-06-12 20:44:37 EDT
Commit 2c17aa30 in crankcase adds the dependency.
Comment 3 Peter Ruan 2012-06-13 17:47:52 EDT
verfified with devenv_1842 (ami-6ab71403) by creating a php file like the


echo bccomp('1', '2');


should see -1 in the page.

Note You need to log in before you can comment on or make changes to this bug.