> On Jul 1, 2015, at 2:25 PM, Anatol Belski wrote:
>
>> Expanding on this idea, a separate RFC could propose a magic
> __cast($value)
>> static method that would be called for code like below:
>>
>> $obj = (ClassName) $scalarOrObject; // Invokes
>> ClassName::__cast($scalarOrObject);
>>
>> Thi
Hi Bob,
> On 2 Jul 2015, at 01:26, Bob Weinand wrote:
>
>> Am 29.06.2015 um 19:14 schrieb Andrea Faulds :
>>
>> Hmm. Using Error might make some sense given it used to raise E_WARNING. I
>> think DivisionByZeroError sounds like a good idea.
>
> Hey,
>
> I just committed that to master…
Grea
> Am 29.06.2015 um 19:14 schrieb Andrea Faulds :
>
> Hi again,
>
>> On 29 Jun 2015, at 18:02, Bob Weinand wrote:
>>
>> Yes, it generally makes sense...
>> Then I have other questions:
>>
>> - Why do we then still have a Warning? Either we have well-defined behavior,
>> or we throw an exceptio
Hi Anatol!
Anatol Belski wrote:
>> -Original Message-
>> From: Christoph Becker [mailto:cmbecke...@gmx.de]
>> Sent: Wednesday, July 1, 2015 12:55 AM
>> To: Anatol Belski; 'PHP Internals'
>> Cc: 'Pierre Joye'; 'Kalle Sommer Nielsen'; 'Dmitry Stogov'; 'Xinchen Hui';
>> 'Nikita
>> Popov'
>>
Hi,
> -Original Message-
> From: Aaron Piotrowski [mailto:aa...@icicle.io]
> Sent: Wednesday, July 1, 2015 9:00 PM
> To: Sara Golemon
> Cc: pthre...@pthreads.org; internals@lists.php.net
> Subject: Re: [PHP-DEV] [RFC] UString
>
>
> > On Jul 1, 2015, at 1:06 PM, Sara Golemon wrote:
> >
>
> On Jul 1, 2015, at 1:06 PM, Sara Golemon wrote:
>
> On Tue, Jun 30, 2015 at 10:36 PM, Joe Watkins wrote:
>> Another possible issue is engine integration:
>>
>>$string = (UString) $someString;
>>$string = (UString) "someString";
>>
> That sounds as a cool idea to discuss as a complet
On Tue, Jun 30, 2015 at 10:36 PM, Joe Watkins wrote:
> Another possible issue is engine integration:
>
> $string = (UString) $someString;
> $string = (UString) "someString";
>
That sounds as a cool idea to discuss as a completely separate,
unrelated RFC, and not specific to UString.
e.g.
> De : Bob Weinand [mailto:bobw...@hotmail.com]
>
> Interesting idea (from the concept). I even could get on board with this; I'm
> just not that sure about the performance impact. (alignment of refcount to
> base address etc.)
zend_string *s;
s = zend_string_alloc(256, 0)
> Am 30.06.2015 um 20:16 schrieb François Laupretre :
>
>> De : morrison.l...@gmail.com [mailto:morrison.l...@gmail.com] De la part
>>
>> Just to time in with my $0.02: I feel that using macros as an
>> abstraction in this case is bad practice. I believe that in *most*
>> cases macros as an abst