]> granicus.if.org Git - php/commit
Back memory stream by a zend_string
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 18 Dec 2020 16:07:07 +0000 (17:07 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 18 Dec 2020 16:07:07 +0000 (17:07 +0100)
commit7904a087ec4fc156c52e0f5e8e15d798808f7843
tree98c38a969b51e5433f287bafb34f0215e2eb8795
parent9ec6392d809a5dbecaa66c373e2307f62bdf42e8
Back memory stream by a zend_string

This allows reusing an existing zend_string inside a memory stream
without reallocating. For non-readonly streams, the string will
only get separated on write.
ext/pdo/pdo_stmt.c
ext/pdo_pgsql/pgsql_statement.c
ext/standard/image.c
main/php_memory_streams.h
main/streams/memory.c