Bug 829640

Summary: Can not use bccomp (php)
Product: OKD Reporter: mattias.ohlsson
Component: ContainersAssignee: Rob Millner <rmillner>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 2.xCC: mfisher, pruan, qgong, szhou
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: cartridge-php-5.3-0.94.1+ Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-25 18:26:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description mattias.ohlsson 2012-06-07 07:38:20 UTC
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 127.5.93.129] 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-13 00:44:37 UTC
Commit 2c17aa30 in crankcase adds the dependency.

Comment 3 Peter Ruan 2012-06-13 21:47:52 UTC
verfified with devenv_1842 (ami-6ab71403) by creating a php file like the
following

<?php

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

?>

should see -1 in the page.