Re: PHP 7 : Cannot use stream wrappers during MINIT

From: Date: Mon, 09 Nov 2015 15:41:57 +0000
Subject: Re: PHP 7 : Cannot use stream wrappers during MINIT
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-89123@lists.php.net to get a copy of this message
On 6 November 2015 at 00:08, François Laupretre <francois@php.net> wrote: > Hi, > > An uninitialized HashTable generally is > filled with 0s. Today, using an uninitialized HashTable goes undetected, > even in debug mode (because HT_OK == 0), and is very hard to track. Uninitialized variables should be pretty easy to check by setting export USE_ZEND_ALLOC=0 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=255 (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

« previous php.internals (#89123) next »