Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89123 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34029 invoked from network); 9 Nov 2015 15:42:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Nov 2015 15:42:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 209.85.160.176 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 209.85.160.176 mail-yk0-f176.google.com Received: from [209.85.160.176] ([209.85.160.176:33749] helo=mail-yk0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 61/52-13667-8CEB0465 for ; Mon, 09 Nov 2015 10:42:00 -0500 Received: by ykdv3 with SMTP id v3so180876385ykd.0 for ; Mon, 09 Nov 2015 07:41:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality_com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=LITZDWfExQCvp+LpuQnom4E3QDbsfNu/PNaB5dvmFVE=; b=fAcaMnbd9YNg7289qmk1vtwPu+BkjkSv6RsHtllZaKJZDd5jFlCa9jfByuVEfS3DsJ OU+mZOopZs7CRLXA4tMLXhOgGhaKvzH3Nybijd5MQk2Oahvwbf40KMtzvfGMXiT04wPo fAtpd2JMIVs53IRK/988h+5YInjqC1mx0XevCiV11PIki6KMDOdG0cPvMXv2K9h/rIz7 Yy8nkfxFcQEEYb5ut9ExiGB41NbtXPYlRK9jSjL77B6KDpqvUTmXwD25mbhECKb+wFc0 W/lBcAAl+17fMk/I6lCGGikOsLTQHormy7QNsFKjLoYEOvH3N3HpnVaBpDRIv3QVE+H1 zk3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=LITZDWfExQCvp+LpuQnom4E3QDbsfNu/PNaB5dvmFVE=; b=Q9qtKrZ6F5bcwTYaKf+rSGy5CwZC7p0xLFzhG+FPfLzLJSQe19FtFoi5esZXzUJloS TeKEzvicXrxlFgqW5bRkfm9hm39+wgsIekHaXrI+bgarpGQbft20bTRZ3xYiEK0nNCEQ T/0XQH1JPeKoXq2khh+d2bAfBvImA67DflYGzaiNoAUABlxUWNp7LliY5P+AXlAw8QtW QwX+SCjEN5l+sbgD6pgOIYMLc1k3ZD5EtxIgnU0tW6czKF3nNVzEF6jGgW9CvZ7a/JMV tmaafcfVTZzVnyCL5IF+2oTXs+iwNzvpUfm0okAAYmonu4/sJEwXP4XMmhMvRp46mQCH 2ITw== X-Gm-Message-State: ALoCoQmNXvxURdityljNPHK0xagO1FYsb0orFOdQWTWu/SfbJ4y0OD3hFKKZrYK1nDp3+hF3s9PM MIME-Version: 1.0 X-Received: by 10.129.87.132 with SMTP id l126mr26833964ywb.251.1447083717466; Mon, 09 Nov 2015 07:41:57 -0800 (PST) Received: by 10.37.112.69 with HTTP; Mon, 9 Nov 2015 07:41:57 -0800 (PST) X-Originating-IP: [2.96.88.152] In-Reply-To: <563BEF66.4050202@php.net> References: <563BEF66.4050202@php.net> Date: Mon, 9 Nov 2015 15:41:57 +0000 Message-ID: To: =?UTF-8?Q?Fran=C3=A7ois_Laupretre?= Cc: PHP internals , Dmitry Stogov Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] PHP 7 : Cannot use stream wrappers during MINIT From: danack@basereality.com (Dan Ackroyd) On 6 November 2015 at 00:08, Fran=C3=A7ois Laupretre wro= te: > Hi, > > An uninitialized HashTable generally is > filled with 0s. Today, using an uninitialized HashTable goes undetected, > even in debug mode (because HT_OK =3D=3D 0), and is very hard to track. Uninitialized variables should be pretty easy to check by setting `export USE_ZEND_ALLOC=3D0` to make allocs go straight through to malloc and then running the program through valgrind. That should report all uninitialized data. Additionally using the --malloc-fill=3D255 (or appropriate value) should make the code blow up pretty quickly. I'd be interested to know if that's doesn't report the issues for you - as that's the backup to check that I haven't forgotten to initialize anything, and if that's not reliable....I might need to check some stuff. cheers Dan