ECI: bcsub   

Oct 14th, 2011 // In: Easy CSV Importer // By: Comments 0

The bcsub function was added to calculate script processing times. Occasionally an Easy CSV Importer user reported issues with this function. I used “@” to hide any errors but it turns out that does not prevent problems. Blank pages or errors on creating new projects can be caused by this function not being available.

BCMath Arbitrary Precision Mathematics Extension

As I said the problem happens occasionally meaning most hosting has this extension installed. I’ll try to gather more information on hosting that does not but usually they will be happy to install an extension. You can read more about this extension here http://www.php.net/manual/en/book.bc.php and more about the bcsub function here http://www.php.net/manual/en/function.bcsub.php,

Work Around

After I publish this my task is to code a workaround, check if the extension is installed and if it is not avoid using bcsub. I don’t want to remove the use of bcsub because it is ideal but if anyone knows another accurate approach to calculating script time I’m open to the suggestion. I will also display a notification whenever bcsub has been avoided.

Leave a Reply

You must be logged in to post a comment.