[php-src] PR #15125: Virtual props xmlreader

From: Date: Sat, 27 Jul 2024 13:50:30 +0000
Subject: [php-src] PR #15125: Virtual props xmlreader
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-27512@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/15125 Author: nielsdos ## Allow ZEND_ACC_VIRTUAL to be used to not have property backing storage without resorting to hooks This is useful to reduce the memory usage of objects that don't actually use the backing storage. Examples are XMLReader and DOM. When the properties were added to the stubs, these objects became much much bigger, which is a waste of memory. Closes https://github.com/php/php-src/issues/11644. Works towards https://github.com/php/php-src/issues/13988. ## Use @virtual annotation in XMLReader All properties of XMLReader are virtual and therefore don't need backing storage.

« previous php.git-pulls (#27512) next »