Implemented intdiv()
Fixed testcase
php_error_docref
Added -1 safety check, fixed test
Merge branch 'intdiv'

* intdiv:
  Added -1 safety check, fixed test
  php_error_docref
  Fixed testcase
  Implemented intdiv()