Thread::getCurrentThreadId (static) method
Thread::getThreadId inconsistency fixed
Fix memory errors on copying statics/defaults in prepare()
Replace usage of calloc() with malloc() in store routines
Replace usage of calloc() with ecalloc() where buffers are passed into zend
Changes to tests to bring them inline
impact #180