Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97838 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54199 invoked from network); 17 Jan 2017 21:56:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jan 2017 21:56:10 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.68 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 74.125.83.68 mail-pg0-f68.google.com Received: from [74.125.83.68] ([74.125.83.68:35375] helo=mail-pg0-f68.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/7F-00729-9F29E785 for ; Tue, 17 Jan 2017 16:56:09 -0500 Received: by mail-pg0-f68.google.com with SMTP id 204so8941715pge.2 for ; Tue, 17 Jan 2017 13:56:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=v6UN3VjBGp8H9oGmbmYfG7icwNBhltUtTROrjYn4nBQ=; b=YHkSZ6ZMz8J0LCJ45Z0QYgZaF8lPjXr1fZsubkRiDY4nboX9y7bsUC6pVZ3wtlWQwF sA9/Cx6ymNFzEoQ1phttkSVGe+L43Kw3KC+vYr+O8E9J0i/3R90pXi77giB27x80SXlU C/JDYee3ENhY0AAomHXpZ8Tg65xRWPUGfhdVWsDFJKLr9bjYqptimcpot9iR9jHc5hMV egvrUy+cN22PJn7ZpeFN1gF8bGJAPFh5jM7bDstqbPxYqXjtkbUrNbewZ/6dDTS3j5H9 K7T9ua8gxRB63XojhmL5vASyISWZVXJt3BAvnj9e1HF3f01q8GlTDSVqskYG4gmY1Yg6 MtDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=v6UN3VjBGp8H9oGmbmYfG7icwNBhltUtTROrjYn4nBQ=; b=PYdZQ73tuqnbgxyFRViFLC990P1apQV9Ji1io8R21C/ECmaf9btRrRlBKuoJgpORhn LtIT/RG2jfEnaCwJV7pqWdx9YHxRwPIIagbovZJ+jMGLAo9JdtmFWwRe7dnFyLU8NAjX W53VxAFg1+FkwbIBcCVLJvg5uAfjnUbf76uONx2aXrtKNTMaCyli28YfsvIEJFpD6aHu yboaGSHw6Rhoa2IOGlwwWoKYbY8cz/5jP+RmRFhLaeDw5BLujDH+82qTbevlOEP2HouN weqG/YdK7tugOSauOwy0K/8iiY1Nrl+Dp5v24mx2J7bSNCWzDuT/x5VdjicL/HiLnfqd iT9g== X-Gm-Message-State: AIkVDXLW70MVALA102XgvYpv3OVWE014hNGH7OXwov8u5AQ8G0dOqeat3XILreAo9kTeAw== X-Received: by 10.84.217.85 with SMTP id e21mr24543728plj.109.1484690166488; Tue, 17 Jan 2017 13:56:06 -0800 (PST) Received: from Stas-Air.corp.wikimedia.org ([198.73.209.2]) by smtp.gmail.com with ESMTPSA id e189sm9972733pfg.64.2017.01.17.13.56.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jan 2017 13:56:05 -0800 (PST) To: Rasmus Schultz , Dmitry Stogov References: Cc: Bob Weinand , Joe Watkins , PHP internals list Message-ID: <0cc9b7da-fb42-25b6-c66c-7258a4e1786b@gmail.com> Date: Tue, 17 Jan 2017 13:56:05 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Typed properties problems From: smalyshev@gmail.com (Stanislav Malyshev) Hi! >> That's pretty messed-up right there. At least in the object cases there's >> an E_WARNING "Creating default object from empty value" - with the array >> case, nothing, it just converts your boolean into an array. Yiiiiikes. This works only on "empty" values, btw - null, false and "". And it doesn't really "convert" anything - no more than reassigning variable converts anything - it just drops the "empty" value and replaces it with an array. -- Stas Malyshev smalyshev@gmail.com