Category Archives: Programming

Fix/Int (Floor) function oddity in ColdFusion 8

I’ve discovered an odd little “bug” in the Fix and Int functions in ColdFusion 8. The Fix/Int functions work similarly to the Floor function in other languages: According to the ColdFusion 8 LiveDocs Int - Calculates the closest integer that is smaller than number. For example, it returns 3 for Int(3.3) and for Int(3.7); it returns -4 for [...]
Also posted in ColdFusion | Tagged , | Leave a comment

Assigning the return value of new by reference is deprecated

I recently upgraded to PHP 5.3.0 after having some issues with FASTCGI and 5.2.x on Windows but the moment I did this I started getting numerous warnings. The one that appeared the most was: Assigning the return value of new by reference is deprecated Apparently in PHP5 all objects are passed as reference and 5.3.0 formally deprecated [...]
Also posted in PHP | Tagged , , | Leave a comment

CFPOP and SSL

One of the reasons I love Adobe’s ColdFusion so much is the fact that it is built on a Java engine and you are able to use a lot of the powerful features of Java from CF. I however don’t get to use this feature often enough, mainly because most of the things I work [...]
Also posted in ColdFusion, Java | Tagged , , , | Leave a comment

PayPal Annoyances

This is a trivial post but Paypal integration has been a headache over the past few years which the manuals having incorrect information, differences between the UK and US apis and hugely unhelpful error codes. Things have gotten a bit better in recent times but still not as good as it should be given the [...]
Also posted in ColdFusion, General | Tagged | Leave a comment

Setting secure attribute of JSESSIONID cookie in ColdFusion 8

As part of PCI compliance our servers were run through third party security auditing and one warning we received was “Missing Secure Attribute in an Encrypted Session (SSL) Cookie”. This warning referred to the JSESSIONID cookie being set in our SSL enabled pages not having the SECURE attribute set. In ColdFusion there is no way [...]
Also posted in ColdFusion, Security | Tagged , , , | Leave a comment
  • Subscribe to my feed Subscriber via Email Follow Me on Twitter! Check me out on Facebook! Check me out on LinkedIn!