[php-src] Issue #10251: Assertion `(flag & (1<<3)) == 0' failed.
| From: | Changochen | Date: | Fri, 06 Jan 2023 22:14:11 +0000 |
| Subject: | [php-src] Issue #10251: Assertion `(flag & (1<<3)) == 0' failed. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-243362@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/10251
Author: Changochen
### Description
The following code:
```php
<?php
class A
{
function __set($o, $l)
{
$this->$p = $v;
}
}
$a = new A();
$pp = "";
$op = $pp & "";
$a->$op = 0;
?>
```
Resulted in this output:
```
/Zend/zend_hash.c:763: zval *_zend_hash_add_or_update_i(HashTable *, zend_string *, zval *,
uint32_t): Assertion `(flag & (1<<3)) == 0' failed.
```
Build config:
```
./configure --disable-all --enable-address-sanitizer --disable-phpdbg --disable-cgi --with-pic
--enable-debug-assertions
make -j
```
### PHP Version
PHP 8.3.0-dev
### Operating System
_No response_