The pecl package 'operator' (http://pecl.php.net/package/operator)
sounds like what you might be looking for.
Wow, great! All I have to do is to implement a __assign_concat() method?
Yep, atm you can refer to the test files included in the package (no other
docs yet).
Patrick also blogged up
Carl P. Corliss wrote on Freitag, 27. Januar 2006 16:27:
> The pecl package 'operator' (http://pecl.php.net/package/operator)
> sounds like what you might be looking for.
Wow, great! All I have to do is to implement a __assign_concat() method?
Incredible!
Thank you, thanks to Sara!
Why this is
Thomas Moenicke wrote:
[snip]
Is there a generic way (for extensions, of course) to override the operators
between objects implementing __toString()?
[snip]
The pecl package 'operator' (http://pecl.php.net/package/operator)
sounds like what you might be looking for.
Cheers!,
--
Carl
--
PHP
Marcus Boerger wrote:
> Hello Jeremy,
>
> it is supposed to work everywhere in head and will be available in 5.2.
>
Is there a generic way (for extensions, of course) to override the operators
between objects implementing __toString()?
See, I have two objects:
$o1 = new QString("php")
Hello Jeremy,
it is supposed to work everywhere in head and will be available in 5.2.
regards
marcus
Friday, January 27, 2006, 12:54:28 AM, you wrote:
> Hello All,
> Was this actually added into PHP? Can anyone confirm if PHP's toString()
> magic method will work everywhere a string is used
Hello All,
Was this actually added into PHP? Can anyone confirm if PHP's toString()
magic method will work everywhere a string is used (aka printf, switch,
etc)? If so, will this be possibly available in the 5.1x branch (since it's
sorta a bug/consistency fix) or will it only make it into the next
Hello Edin,
cool, thanks!
marcus
Wednesday, September 28, 2005, 10:52:00 PM, you wrote:
> http://ftp.emini.dk/pub/php/win32/php6/
> Edin
> Marian Kostadinov wrote:
>> I'd like to do some tests of the new __toString functionality but it
>> seems that it is committed only in PHP6-CVS branc
http://ftp.emini.dk/pub/php/win32/php6/
Edin
Marian Kostadinov wrote:
I'd like to do some tests of the new __toString functionality but it
seems that it is committed only in PHP6-CVS branch. Is there a way to
get a windows binary snapshot for this branch?
--
PHP Internals - PHP Runtime Deve
I'd like to do some tests of the new __toString functionality but it
seems that it is committed only in PHP6-CVS branch. Is there a way to
get a windows binary snapshot for this branch?
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Hello Andi,
the excepton part is not in it jet but i'll do it (or dmitry can do it
easily). However i don't see a point here. And i don't see a point in your
dtors either. If anything that happens with the current implementation of
the patch is wrong then either it is an edgecase we have to fix
Andi Gutmans writes:
> Believe me, from a usability perspective, I think
> __toString() working automagically is very nice... I'm just
> being less trigger happy and want to make sure we're covered.
Humbly, this is a smart and prudent approach, to a nice piece of work
I might add.
Best,
Mike
Marcus,
I think you misread my email.
I said that it *should* be commited. I did want an additional two
days to review because we did *have* feedback for the patch (as you
saw). I don't know who "All others" are, but I don't know many who
can understand this patch to the lowest level of details
>> -Original Message-
>> From: Marcus Boerger [mailto:[EMAIL PROTECTED]
>> Sent: Sunday, September 25, 2005 4:37 PM
>> To: internals
>> Subject: [PHP-DEV] [PATCH] __toString()
>>
>>
>> Hello internals,
>>
>> the patch implements __t
2005 4:37 PM
> To: internals
> Subject: [PHP-DEV] [PATCH] __toString()
>
>
> Hello internals,
>
> the patch implements __toString to have obejcts be
> automatically converted to strings anywhere a string is
> requested. We have talked a lot about this in the past and
Hello Andi,
i don't see your point here. We've discussed this tons of times. Either fix
the engine if you know it's broken, show us a real problem with the pacth or
accept the fact that we want to make progress here. Blocking patches because
they have a slight potential in causing some problems
Give me a couple of days to review the patch itself.
I think we should then commit to HEAD, and see how it goes. There's
hopefully enough time in the PHP 6 process to validate that this kind
of patch doesn't hit any conceptual problems re: propagating to
pre-compile/post-shutdown execution stag
Hello internals,
the patch implements __toString to have obejcts be automatically converted
to strings anywhere a string is requested. We have talked a lot about this
in the past and during OSCON Andi agreed again on it and said that the HEAD
version of the engine should be ready for it now. Fut
17 matches
Mail list logo