Bug 58876 - bcdiv() apparently not provided by php-4.0.6-7
Summary: bcdiv() apparently not provided by php-4.0.6-7
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: php
Version: 7.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Phil Copeland
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-01-26 08:54 UTC by Bishop Clark
Modified: 2007-04-18 16:39 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-02-08 02:45:17 UTC
Embargoed:


Attachments (Terms of Use)

Description Bishop Clark 2002-01-26 08:54:26 UTC
Description of Problem:
using php-4.0.6-7, php pages using bcdiv() encounter errors:
Fatal error:  Call to undefined function:  bcdiv() in [filename]

This is rather odd, as http://www.php.net/manual/en/function.bcdiv.php seems to
state that bcdiv(0 is in php > 4.0.0 .  

Version-Release number of selected component (if applicable):
php 4.0.6-7

How Reproducible:
always.  All night.

Steps to Reproduce:
view a php file of the following content under apache on RH72:

<html><head></head><body>
<? $outpt = bcdiv("3","4",2); ?>
</body></html>

 

Actual Results:
Fatal error: Call to undefined function: bcdiv() in
/home/bishop/public_html/test.php on line 2

Expected Results:
0.75

Additional Information:
works on 3.0.18, and any other PHP4 implementation.  Something fishy is afoot.

Comment 1 Bishop Clark 2002-01-26 08:56:22 UTC
argh.  s/$outpt =/echo/ in my example for code I used on my RH62 box.





Comment 2 Phil Copeland 2002-01-28 21:15:39 UTC
http://www.php.net/manual/en/ref.bc.php

That version of php wasn't compiled with --enable-bcmath hence those functio
calls aren't available.
If I get time I'll try and get an errata out that does, however, I'm very busy
with other work for php 4.1.1

Comment 3 Bishop Clark 2002-01-28 21:53:00 UTC
Hey, I'll save you the trouble:  4.0.6-13 *is* built with --enable-bc-math or so.  

The only problems with 4.0.6-13 is:  
 - it's RawHide, and apparently even RH doesn't recommend they be used
   for anything other than bleeding-edge masochists.  
 - it requires about a gazillion OTHER rawhide packages, because it was
   built on a system with all those libraries installed.  Were Terpstra
   to find out about something like this, he'd rant yet more on 

Against my better judgement *and* the apparent RH statement regarding the
potential instability of RawHide packages (for purposes of liabilility 8-), I
grabbed 4.0.6-13, rebuilt it on my bare 7.2 + updates box, and installed it. 
This 406 package provided both bcmath and gmpmath functions, so it was a win.

Now.  If you can rebuild that package on a box without all the extra crap in
there and get 406-13 blessed with the Errata stamp becuase it's a compatibility
error, we can all be happy.  8-)

(thanks for the reply, btw, the turnaround was really good for a Monday)

- bish

Comment 4 Bishop Clark 2002-02-08 00:46:10 UTC
whoa, slow up there.  Did an errata release come out?  RawHide isn't support, or
so I hear, and I need something that's supported.



Comment 5 Phil Copeland 2002-02-08 02:29:28 UTC
Well, it's queued up for errata

Phil
=--=

Comment 6 Bishop Clark 2002-02-08 02:45:11 UTC
That was supposed to read 'supportED'.  I just realized that my error could be
misread;  please, no slur intended on RH Support.

(Hey, I may need a job some day, and the LAST thing I need to hear is "Well, we
liked your resume, and the juggling of sharp knives *was* impressive;  now tell
us about Bugzilla #58876....")

So, what's the typical schedule after being queued?  A week, a month?  Heck,
after the Superbowl, I *need* another over-under on which to bet...  


Comment 7 Phil Copeland 2002-06-04 20:08:42 UTC
Errata due in the next few days

Phil
=--=


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