[ZBX-5020] Fatal error: Call to undefined function ctype_digit() and bcscale() on "setup.php" without some PHP extensions Created: 2012 May 18  Updated: 2017 May 30  Resolved: 2012 May 21

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F), Installation (I)
Affects Version/s: 2.0.0rc5
Fix Version/s: 2.0.1rc1, 2.1.0

Type: Incident report Priority: Major
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

I suppose any, errors from Zabbix 2.0.0rc5 with PHP 5.3.13



 Description   

I'm trying to open "setup.php" page when two required PHP extensions ctype.so OR bcmath.so is NOT loaded and I'm receiving just single-line errors:

;extension=ctype.so ->
Fatal error: Call to undefined function ctype_digit() in /zab/www-dev/zabbix20/include/func.inc.php on line 635

;extension=bcmath.so ->
Fatal error: Call to undefined function bcscale() in /zab/www-dev/zabbix20/include/defines.inc.php on line 915

According to logic that "setup.php" has been designed to be able at least perform the step "2. Check of pre-requisites" (where availability of those PHP extensions is checking) current behavior is ... wrong



 Comments   
Comment by Toms (Inactive) [ 2012 May 21 ]

Fixed in dev. branch: svn://svn.zabbix.com/branches/dev/ZBX-5020

Comment by Oleksii Zagorskyi [ 2012 May 21 ]

dev branch tested.
now the page is displayed, I see "no" for those extensions, but bottom of the page (even any step) I see a error:
Fatal error: Call to undefined function bccomp() in /zab/www-dev/ZBX-5020/include/func.inc.php on line 1131

added: if add there (line 1131) additional function check - will work without additional errors

REOPENED

<Toms> RESOLVED in r27668

<zalex> Successfully TESTED, thanks.

Comment by Pavels Jelisejevs (Inactive) [ 2012 May 21 ]

The code looks OK, can be merged.

Comment by Toms (Inactive) [ 2012 May 22 ]

Fixed in 2.1.0 r27719

Comment by Oleksii Zagorskyi [ 2012 May 22 ]

... and in 2.0.1rc1 r27719

Comment by Toms (Inactive) [ 2012 May 22 ]

... yes 2.0.1rc1 r27718

Comment by Oleksii Zagorskyi [ 2012 May 22 ]

... yes 27718 !

Generated at Fri Jul 04 07:24:10 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.