Project

Profile

Help

Feature #3854

Add PHP's magic methods

Added by O'Neil Delpratt about 2 years ago. Updated over 1 year ago.

Status:
In Progress
Priority:
Normal
Category:
PHP API
Start date:
2018-07-20
Due date:
% Done:

0%

Estimated time:
Found in version:
1.1.0
Fixed in version:

Description

A user of Saxon/C in PHP tried to use an XdmAtomicValue directly in a string concatenation.

This failed with the error:

PHP Recoverable fatal error:  Object of class Saxon\\XdmAtomicValue could not be converted to string in /var/www/html/web/php/make-course-catalog.php on line 32, referer: http://localhost/web/index.html

It would be good in the next release of Saxon/C to add PHP magic methods for the Xdm APIs

History

#1 Updated by O'Neil Delpratt over 1 year ago

  • Description updated (diff)

#2 Updated by O'Neil Delpratt over 1 year ago

  • Status changed from New to In Progress

Update:

I have now added the PHP __toString. Now reviewing if we should add any other PHP magic methods.

Testing also required.

Please register to edit this issue

Also available in: Atom PDF