Project

Profile

Help

Support #2096

closed

Java exceptions should trigger an php exception

Added by O'Neil Delpratt almost 10 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Category:
PHP API
Start date:
2014-06-30
Due date:
% Done:

0%

Estimated time:
Found in version:
0.3.1
Platforms:

Description

Requested by user Jeron Bobbeldijk:

User mentioned that it would be good for a Java exceptions to trigger a PHP exception.

Examples:

https://github.com/mongodb/mongo-php-driver/blob/master/exceptions/connection_exception.c

https://github.com/mongodb/mongo-php-driver/blob/master/exceptions/connection_exception.h

In the PHP extension:

zend_throw_exception(mongo_ce_ConnectionException, error_message, 71 TSRMLS_CC);

Actions #1

Updated by O'Neil Delpratt about 2 years ago

  • Description updated (diff)
  • Status changed from New to Closed

This has been achieved in Saxon/C 1.2.1 and further improved in SaxonC 11.1

Please register to edit this issue

Also available in: Atom PDF