Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101685 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16431 invoked from network); 26 Jan 2018 04:35:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jan 2018 04:35:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.216.177 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.216.177 mail-qt0-f177.google.com Received: from [209.85.216.177] ([209.85.216.177:40449] helo=mail-qt0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E5/71-04233-EFFAA6A5 for ; Thu, 25 Jan 2018 23:35:10 -0500 Received: by mail-qt0-f177.google.com with SMTP id s39so24928189qth.7 for ; Thu, 25 Jan 2018 20:35:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golemon-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=8FvrsY6ZTojZXbZI/xzo+RtbFxL3k7M732VSWVY4rus=; b=M8FjMNYzO7DRd9zzBFTZdpTDhH18QCQXHR6YHoT/V6bd4pEz/ivowK+nW3A1qBiT88 RXIISLYJ949G7QzVGX2WQUjP5rG1ASd5wGAeJQlXMiOZlV8LmagTaoyUuY3WpkdsQXQw uaeiLLVeABE/abwUbqHNcJojbBFlgQ4XkRqJZPdoUMQHSABVrM/hQnEpW1XBDdwpwGYL KhRWhEV9Ix9bGSy0p/9H9X9fDy+2FVSjcQ/0HjTr/xmTIInCmlpj8SMxH+WmCIDXe4vm dYuDRvpA/4Gkq/HGRVTXgSldyLpuP2JFZdNhV2/7on8EeHKR2E6BKea2UV1Gly2XdTTR 3few== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=8FvrsY6ZTojZXbZI/xzo+RtbFxL3k7M732VSWVY4rus=; b=WI4m50CHP0Nj7F0zu7kkvAMY2+12cvOchpjS/NFM+pzPKsJXe28dNnllq6Q+tDWjj5 hjpuzfnykZzCyCVtjxiB+DP/mGHRnEbdrzMnhwXJnn/9odI9d8iUwpeTMOV/tfi63kOJ 3NPCBZeR4bPHgV+laMAprUUm415Pyrj75NSDjsP/x2VoCpFQAzm28066EhnXdKEaBbv4 lTHlcTXJwnC1QZZpxrAsUj4Qri16zL2SCNaQbuSjSOsCqnJpNFdS1ubT/MFUF4jA06vt KyJYlPknzoROLU46/VmcjVq8r0cHuHsvYxMvK+CyX3s1ry5DoWYh6sk8jzrtq/sBYya5 d9ow== X-Gm-Message-State: AKwxytfJ6ce2riihW4fkmbUlPd3Np6BDh8SU1/XZYMHT3IVPFOPOCG5l rYbPM7q4xuxEvn8cuAcjkWdw2oDtKRMUG7x5Ymn9GjxI X-Google-Smtp-Source: AH8x224f1Ak17Ew7MCpCwXuJePPMjjeXJb+sopFNVTyjn/yd7Sx94Q37D7TLO7S/GQHMpDRTNTD+xDXYcs+lLhkMke4= X-Received: by 10.200.35.3 with SMTP id a3mr21637277qta.311.1516941307346; Thu, 25 Jan 2018 20:35:07 -0800 (PST) MIME-Version: 1.0 Sender: php@golemon.com Received: by 10.12.197.144 with HTTP; Thu, 25 Jan 2018 20:35:06 -0800 (PST) X-Originating-IP: [206.252.215.26] In-Reply-To: <1516938630.3834061.1248645856.0B4E6C4F@webmail.messagingengine.com> References: <1516938630.3834061.1248645856.0B4E6C4F@webmail.messagingengine.com> Date: Thu, 25 Jan 2018 23:35:06 -0500 X-Google-Sender-Auth: AiG7WDBxQ-2ViOHtyTYKFND09hM Message-ID: To: Ryan McCullagh Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Difference between smart_str and smart_string From: pollita@php.net (Sara Golemon) On Thu, Jan 25, 2018 at 10:50 PM, Ryan McCullagh 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