Re: Difference between smart_str and smart_string

From: Date: Fri, 26 Jan 2018 04:35:06 +0000
Subject: Re: Difference between smart_str and smart_string
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-101685@lists.php.net to get a copy of this message
On Thu, Jan 25, 2018 at 10:50 PM, Ryan McCullagh <me@ryanmccullagh.com> wrote: > I have been browsing php-src and notice smart_string, and smart_str, each with their header > files. Why is there two seemingly identical structures with the same name? > smart_string targets a raw char* buffer, smart_str targets a refcountable zend_string*. You'll almost always want the latter, except when you don't. -Sara

« previous php.internals (#101685) next »