Re: Re[2]: [PHP-DEV] Re: hook cast_object handler in userspace

From: Date: Sun, 03 Aug 2003 22:10:26 +0000
Subject: Re: Re[2]: [PHP-DEV] Re: hook cast_object handler in userspace
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-3710@lists.php.net to get a copy of this message
Hi Marcus, > Not good enough it seems :-( I'll get there... ;-) > Some comments: > - Please always start with tabs, you used spaces to begin lines. done. > - TSRMLS_FETCH() is a variable declaration, so it cannot be used inside a > function. If I wipe TSRMLS_FETCH() out, I get this error: /usr/src/zend2/php-src/Zend/zend.c:234: `tsrm_ls' undeclared (first use in this function) So I kept it. > - Still you haven't checked whether or not the function to_string() is > available. I checked it with get_method, but I don't know how to call a function (internal, user or overloaded) using the zend_function union. So I check with "get_method" but still call with "call_user_function" when the union has the type=ZEND_USER_FUNCTION. I don't know what to do if type=ZEND_INTERNAL_FUNCTION or type=ZEND_OVERLOADED_FUNCTION, so I just do the default behavior. Plz, if you could help on this... Attached another patch. Cristiano Duarte "Marcus BöRger" <marcus.boerger@t-online.de> escreveu na mensagem news:1639357698.20030803225953@post.rwth-aachen.de... > Hello Cristiano, > > Sunday, August 3, 2003, 9:54:55 PM, you wrote: > > CD> I read README.SUBMITING_PATCH and attached the patch as specified. > > Not good enough it seems :-( > > Some comments: > - Please always start with tabs, you used spaces to begin lines. > - TSRMLS_FETCH() is a variable declaration, so it cannot be used inside a > function. > - Still you haven't checked whether or not the function to_string() is > available. > > > > > -- > Best regards, > Marcus mailto:helly@php.net > begin 666 to_string.patch M/R!P:' M<W)C+UIE;F1%;F=I;F4Q"C\@<&AP+7-R8R]P:'!?=&5S=%]R97-U M;'1S7S(P,#,P.# S7S$V-3@N='AT"DEN9&5X.B!P:' M<W)C+UIE;F0O>F5N M9"YC"CT]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T] M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T*4D-3(&9I;&4Z("]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? M3$5.1U1(7T]&7TQ/3D<I.PHK"0D)"0E:7U-44DQ%3E]0*&5X<')?8V]P>2D@ M/2!S<')I;G1F*%I?4U125D%,7U H97AP<E]C;W!Y*2P@(D]B:F5C="!I9" C M)6QD(BP@*&QO;F<I6E]/0DI?2$%.1$Q%7U H97AP<BDI.PHK"0D)"7T*( D) M"7T*("-I9B P"B )"0DO*B!&25A-13H@5&AI<R!M:6=H="!B<F5A:R!"0R!F 2;W(@<V]M92!P96]P;&4@*B\* ` end

« previous php.internals (#3710) next »