Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103931 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 33742 invoked from network); 31 Jan 2019 19:41:00 -0000 Received: from unknown (HELO tbjjbihbhebb.turbo-smtp.net) (199.187.174.11) by pb1.pair.com with SMTP; 31 Jan 2019 19:41:00 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=php.net; s=turbo-smtp; x=1549556455; h=DomainKey-Signature:Received: Received:MIME-Version:References:In-Reply-To:From:Date: Message-ID:Subject:To:Cc:Content-Type; bh=G331HfMWSSKDx/c+9iHMIE 1N7/BA6JqgUoD6GD8FVOg=; b=Nl0vIzrwCYqHxhNte904TWhF+/+GfeA2SfH3ir 3ka8ovxOUJK38jKk26toYdOtQllR5rqsyvnZ9laOnMMegIBwqIYniu7MzZuQfe7T 6Vg6iWConxjwWKFXJVNOiNMyUPZWI580JWVQ3aX7n1EG1YsTWQHBesWbd40wylrM x/2c8= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=turbo-smtp; d=php.net; h=Received:Received:X-TurboSMTP-Tracking:X-Gm-Message-State:X-Google-Smtp-Source:X-Received:MIME-Version:References:In-Reply-To:From:Date:X-Gmail-Original-Message-Id:Message-ID:Subject:To:Cc:Content-Type; b=VrX34n902ov4N5YgYCKuXWqP+sG4ixPrqqaWGWMT0EKYOs+M3kDwilcHiL86SP KYfQ7iTQL3VXSiZOqqIfNH2TrsWsl9BLzRv07g4EJG4xf/gKm+jdH/hY9Y0plFHU 89VmtY9W4OmMzY7hybnlwDODKxpczvs1fTMIcyoBAVqTY=; Received: (qmail 21845 invoked from network); 31 Jan 2019 16:20:54 -0000 Received: X-TurboSMTP-Tracking: 4824376474 X-Gm-Message-State: AJcUukfsRgcJ5fwWEF2wDA+Lbi5aR85uAwwzFVOzhwDU8rgEDfExINlq 1jw/4zeAOTbIC7eXCEcZwJqEOJXr3sT3rKgSUws= X-Google-Smtp-Source: ALg8bN6fKPwgh8q24Mp+aCfvGtRNsZV6mvmXXM+TBQzUYJH8DblqSCaEydCVU7lDl5YnRRsFfyQOhh1dFDElRMDtj6c= X-Received: by 2002:ac8:6909:: with SMTP id e9mr34337470qtr.132.1548951654288; Thu, 31 Jan 2019 08:20:54 -0800 (PST) MIME-Version: 1.0 References: <13d4f2b0-6d4f-d6de-e61f-4fb782da82bf@zend.com> In-Reply-To: <13d4f2b0-6d4f-d6de-e61f-4fb782da82bf@zend.com> Date: Thu, 31 Jan 2019 18:20:42 +0200 X-Gmail-Original-Message-Id: Message-ID: To: Dmitry Stogov Cc: Joe Watkins , Zeev Suraski , "internals@lists.php.net" Content-Type: multipart/alternative; boundary="00000000000020d33a0580c3691f" Subject: Re: [PHP-DEV] RFC Abolish Narrow Margins From: zeev@php.net (Zeev Suraski) --00000000000020d33a0580c3691f Content-Type: text/plain; charset="UTF-8" On Thu, Jan 31, 2019 at 6:09 PM Dmitry Stogov wrote: > The fact that FFI may leak, is because it uses "unmanaged memory" (like > in real C). PHP reference counting and GC just can't handle all the > cases. It's impossible to automatically know what to do with C pointer, > when we get it from function or another structure. In this case > programmer have to care about freeing the pointer themselves (like in C). > > This obviously doesn't count as 'leaks'. If it did, we could say that the Zend Extension API leaks, as it's completely up to the developer to handle memory management. Joe - if that's your concern, I think it's fair to say it's invalid and you have nothing to worry about. Zeev --00000000000020d33a0580c3691f--