Project

Profile

Help

Feature #3854

closed

Add PHP's magic methods

Added by O'Neil Delpratt over 6 years ago. Updated over 2 years ago.

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

0%

Estimated time:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
1.1.0
Fixed in version:
11.1
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:

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

Actions #1

Updated by O'Neil Delpratt over 5 years ago

  • Description updated (diff)
Actions #2

Updated by O'Neil Delpratt over 5 years 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.

Actions #3

Updated by O'Neil Delpratt almost 3 years ago

  • Status changed from In Progress to Resolved

Marking this as resolved.

Actions #4

Updated by O'Neil Delpratt over 2 years ago

  • Status changed from Resolved to Closed
  • Fixed in version set to 11.1

Feature available in the SaxonC 11.1 release

Please register to edit this issue

Also available in: Atom PDF