Project

Profile

Help

Maintenance. Planio will be undergoing a scheduled maintenance this weekend. Between Saturday, July 24 at 9:00 UTC and Sunday, July 25, 22:00 UTC your account might observe occasional downtimes which may last up to several minutes in some cases.

Revision 6af44631

Added by Dave Delpratt 5 months ago

Saxon/C PHP development

View differences:

src/main/c/Saxon.C.API/PHP7-Build/config.m4
8 8
    PHP_SUBST(SAXON_SHARED_LIBADD)
9 9
    PHP_ADD_LIBRARY(stdc++, 1, SAXON_SHARED_LIBADD)
10 10
    PHP_ADD_LIBRARY(dl, 1, SAXON_SHARED_LIBADD)
11
    PHP_NEW_EXTENSION(saxon, php7_saxon.cpp php7_Xslt30Processor.cpp php7_XsltExecutable.cpp SaxonProcessor.cpp XQueryProcessor.cpp XsltProcessor.cpp XsltExecutable.cpp Xslt30Processor.cpp XPathProcessor.cpp SchemaValidator.cpp XdmValue.cpp XdmItem.cpp XdmNode.cpp XdmAtomicValue.cpp SaxonCGlue.c SaxonCProcessor.c  SaxonCXPath.c, $ext_shared)
11
    PHP_NEW_EXTENSION(saxon, php7_saxon.cpp ../SaxonProcessor.cpp ../XQueryProcessor.cpp XsltProcessor.cpp ../XsltExecutable.cpp ../Xslt30Processor.cpp ../XPathProcessor.cpp ../SchemaValidator.cpp ../XdmValue.cpp ../XdmItem.cpp ../XdmNode.cpp ../XdmAtomicValue.cpp ../SaxonCGlue.c ../SaxonCProcessor.c  ../SaxonCXPath.c, $ext_shared)
12 12
fi
13 13

  
src/main/c/Saxon.C.API/PHP7-Build/php7_saxon.cpp
41 41
zend_class_entry *xdmNode_ce;
42 42
zend_class_entry *xdmAtomicValue_ce;
43 43

  
44

  
45
#include "php7_Xslt30Processor.cpp"
46
#include "php7_XsltExecutable.cpp"
47

  
44 48
void SaxonProcessor_free_storage(zend_object *object)
45 49
{
46 50

  
......
1529 1533
    xsltProcessor_object *obj = (xsltProcessor_object *)((char *)pobj - XtOffsetOf(xsltProcessor_object, std));
1530 1534
    xsltProcessor = obj->xsltProcessor;
1531 1535
    if (xsltProcessor != nullptr) {
1532
        const char * errStr = xsltProcessor->getErrorMessage((int)index);
1536
        const char * errStr = xsltProcessor->getErrorMessage();
1533 1537
        if(errStr != nullptr) {
1534 1538
            //char *str = estrdup(errStr);
1535 1539
            _RETURN_STRING(errStr);
......
1990 1994
    xqueryProcessor_object *obj = (xqueryProcessor_object *)((char *)pobj - XtOffsetOf(xqueryProcessor_object, std));
1991 1995
    xqueryProcessor = obj->xqueryProcessor;
1992 1996
    if (xqueryProcessor != nullptr) {
1993
        const char * errStr = xqueryProcessor->getErrorMessage((int)index);
1997
        const char * errStr = xqueryProcessor->getErrorMessage();
1994 1998
        if(errStr != nullptr) {
1995 1999
            //char *str = estrdup(errStr);
1996 2000
            _RETURN_STRING(errStr);
......
2266 2270
		}
2267 2271
            }
2268 2272
        }
2269
        xpathProcessor->checkException();//TODO
2273
       // xpathProcessor->checkException();//TODO
2270 2274
    } 
2271 2275
    RETURN_NULL();
2272 2276
    
......
2323 2327
                }
2324 2328
            }
2325 2329
        } 
2326
        xpathProcessor->checkException();//TODO
2330
       // xpathProcessor->checkException();//TODO
2327 2331
    } 
2328 2332
    RETURN_NULL();
2329 2333
}
......
2515 2519
    xpathProcessor_object *obj = (xpathProcessor_object *)((char *)pobj - XtOffsetOf(xpathProcessor_object, std));
2516 2520
    xpathProcessor = obj->xpathProcessor;
2517 2521
    if (xpathProcessor != nullptr) {
2518
        const char * errStr = xpathProcessor->getErrorMessage((int)index);
2522
        const char * errStr = xpathProcessor->getErrorMessage();
2519 2523
        if(errStr != nullptr) {
2520 2524
            //char *str = estrdup(errStr);
2521 2525
            _RETURN_STRING(errStr);
......
2920 2924
   schemaValidator_object * obj = (schemaValidator_object *)((char *)pobj - XtOffsetOf(schemaValidator_object, std));
2921 2925
    schemaValidator = obj->schemaValidator;
2922 2926
    if (schemaValidator != nullptr) {
2923
        const char * errStr = schemaValidator->getErrorMessage((int)index);
2927
        const char * errStr = schemaValidator->getErrorMessage();
2924 2928
        if(errStr != nullptr) {
2925 2929
            //char *str = estrdup(errStr);
2926 2930
            _RETURN_STRING(errStr);
src/main/c/Saxon.C.API/PHP7-Build/php_saxon.h
43 43
#ifdef __cplusplus
44 44
//} //remove comment
45 45
#endif
46
#include "SaxonProcessor.h"
47
#include "XdmValue.h"
48
#include "XdmItem.h"
49
#include "XdmNode.h"
50
#include "XdmAtomicValue.h"
46
#include "../SaxonProcessor.h"
47
#include "../XdmValue.h"
48
#include "../XdmItem.h"
49
#include "../XdmNode.h"
50
#include "../XdmAtomicValue.h"
51 51
/*class SaxonProcessor;
52 52
class XQueryProcessor;
53 53
class XsltProcessor;

Also available in: Unified diff