Hi laruence,

Thanks for this. I didn't seen your comment on bug #60169 until now, and as 
the bug was assigned to me I've also attempted to fix it and ended up with the 
same fix :)

However, I've noticed that there are other places setting ptr_ptr to NULL, and 
they cause crashes too.

For example, this crashes:

$a = 1;
list($b) = $a->prop = 1;

So I was wondering if we should always set ptr_ptr, or if we should check its 
value in ZEND_FETCH_DIM_R instead. What do you think ?

Best regards,

Le Thursday 3 November 2011 04:59:41, Xinchen Hui a écrit :
> laruence                                 Thu, 03 Nov 2011 03:59:41 +0000
> 
> Revision: http://svn.php.net/viewvc?view=revision&revision=318716
> 
> Log:
> Fix bug #60169 Conjunction of ternary and list crashes PHP
> 
> Bug: https://bugs.php.net/60169 (Assigned) Conjunction of ternary and list
> crashes PHP
> 
> Changed paths:
>     U   php/php-src/branches/PHP_5_4/NEWS
>     U   php/php-src/branches/PHP_5_4/Zend/tests/bug60169.phpt
>     U   php/php-src/branches/PHP_5_4/Zend/zend_vm_def.h
>     U   php/php-src/branches/PHP_5_4/Zend/zend_vm_execute.h
>     U   php/php-src/trunk/Zend/tests/bug60169.phpt
>     U   php/php-src/trunk/Zend/zend_vm_def.h
>     U   php/php-src/trunk/Zend/zend_vm_execute.h

--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to