Project

General

Profile

Actions

Bug #2437

closed

PHP missing bcmath (that was solved for pfSense 2.0 two years ago, re-discovered in the latest pfSense 2.1)

Added by Yuri Keren almost 12 years ago. Updated almost 12 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Captive Portal
Target version:
Start date:
05/18/2012
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.1
Affected Architecture:
All

Description

1.
When "Radius Accounting" is enabled and trying to disconnect a connected client in the captive portal gui - the following error appears: Fatal error: Call to undefined function bcmod() in /usr/local/captiveportal/radius_accounting.inc on line 337

As a result the session gets removed from the pfSense, but the client doesn't get de-authenticated and can still browse without hitting the captive portal.

It seems that due to the fact that bcmath php5 module is not on the system and bcmod() isn't being found.

2.
I found that this issue was already reported and was fixed two years ago for pfSense 2.0: bug #483

Actions #1

Updated by Seth Mos almost 12 years ago

  • Status changed from New to Feedback

Change just checked in, let me know how it goes.

Actions #2

Updated by Yuri Keren almost 12 years ago

Running bcmod() works now.
Thanks.

Actions #3

Updated by Chris Buechler almost 12 years ago

  • Status changed from Feedback to Resolved
Actions #4

Updated by Yuri Keren almost 12 years ago

The fix provided by Seth Mos fixes the issue with bcmod() when running it from php command line, but it still doesn't work when it runs from the web server (invoked by captiveportal_disconnect() function when radius accounting is enabled).

In order to fix the above - "bcmath" needs also to be added as an extension in the rc.php_ini_setup file, like this:

grep -n bcmath /etc/rc.php_ini_setup
127:# bcmath
128:PHPMODULES="$PHPMODULES bcmath"

Thanks.

Actions

Also available in: Atom PDF