On Wed, Jun 19, 2002 at 10:41:04AM +0200, moshe doron wrote : 
> "Markus Fischer" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >     Is there somewhere a zend_try { } zend_try_catch statement
> >     around the execution loop ? It is needed, maybe it's missing?
> 
> there is no one.
> could u commit the needed change (i don't realy understands whats going
> there)?

    Eh, sorry, no :-) I've no real clue either, all I did is
    source reading applied pattern matching. In scriptengine.cpp
    we have e.g. compile_string around line 465. A bailout always
    does a longjmp out of the compile stage, but therefore you
    need to call zend_try { and } zend_end_try(); around the
    code.

    Try something like this:

    zend_try {
        frag->opcodes = compile_string(&pv, "fragment" TSRMLS_CC);
        if (frag->opcodes == NULL) {
            free_code_fragment(frag);
            [...]
        }
    } zend_end_try();

    this is all just guessing.

    - Markus

-- 
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to