Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88639 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27487 invoked from network); 2 Oct 2015 09:43:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Oct 2015 09:43:23 -0000 Authentication-Results: pb1.pair.com header.from=craig@craigfrancis.co.uk; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=craig@craigfrancis.co.uk; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain craigfrancis.co.uk designates 209.85.212.172 as permitted sender) X-PHP-List-Original-Sender: craig@craigfrancis.co.uk X-Host-Fingerprint: 209.85.212.172 mail-wi0-f172.google.com Received: from [209.85.212.172] ([209.85.212.172:36011] helo=mail-wi0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 30/B7-23989-AB15E065 for ; Fri, 02 Oct 2015 05:43:23 -0400 Received: by wicgb1 with SMTP id gb1so24882774wic.1 for ; Fri, 02 Oct 2015 02:43:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=craigfrancis.co.uk; s=default; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=2/Rm9vd8ZRJJVTLDy+MRoOOwNIbwhJVWZ+XTYqhtvHU=; b=Kh282A5xrkdDWiI4JoDLQ2ubN0y/GlVUpIfVoY6eddH6lmFGegpE9kXeyEKj9BZZ4l mtccagHaSJM3fG8q7xAd+aklcAp3hckTtJnRsAuZ0VCO5MNlmVi+XkB+bX1XGlWJ4RuX WVBZypq0r5206go1dWA8WZFqxNgvx6W8rofJY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=2/Rm9vd8ZRJJVTLDy+MRoOOwNIbwhJVWZ+XTYqhtvHU=; b=T3QJ2leFUQiY6qYbbebCS30/bt69TsUppVDjxPxjh1oik5ICt2pZKkU8oJNfNXh98G qkR0k6nVop1d/+uU+EuFTQ13MSKxyEIYmWHcJSdlNF9Sb5EbSFHiy9ImTlYqfsvfynyG x2ZvPVjsKlovRon57QiFUe3iuOsXXNCXaXlVVZ9VaLK3ct6Bv7fkahte6KfZie2qO5+w EiMWLC024Dc/n+Nx3PiPNYT6VR7d0Gj2fwK5YGs6ZaAmbMUX6vYZTXN2sLIB4RzS+G0a E5a8MBsGsYye7LuWYzotrPpWBm9ekXaCLFwNC4p/8k7qgU6LRrsGWHsUsuD7ohgJG7QK krZQ== X-Gm-Message-State: ALoCoQmrcIZ/EWO3kNNedGdLLmjjShhHPdQ1gYNep6aB0VUkaNT1yu5/A61z6eyHAorUB4py+9ch X-Received: by 10.180.182.107 with SMTP id ed11mr3244523wic.52.1443778999132; Fri, 02 Oct 2015 02:43:19 -0700 (PDT) Received: from [192.168.1.12] (cpc79329-chap9-2-0-cust385.18-1.cable.virginm.net. [82.44.123.130]) by smtp.gmail.com with ESMTPSA id c8sm10405301wja.36.2015.10.02.02.43.18 (version=TLS1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 02 Oct 2015 02:43:18 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) In-Reply-To: <560281B9.5050808@gmail.com> Date: Fri, 2 Oct 2015 10:43:17 +0100 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <722F0453-7232-4B75-88FC-800D72C4EA1F@craigfrancis.co.uk> References: <55FB4270.7000204@lsces.co.uk> <55FB4969.7080600@gmail.com> <55FB5BA6.6050606@lsces.co.uk> <55FBF265.5000502@gmail.com> <55FBF7B7.4050603@lsces.co.uk> <55FC1A77.7090406@gmail.com> <55FC221A.7020108@lsces.co.uk> <55FC2588.6030809@gmail.com> <55FC2B17.3070909@lsces.co.uk> <55FC2F2F.9060403@gmail.com> <55FC33F1.3090903@lsces.co.uk> <55FC354B.5070209@gmail.com> <55FC39B2.5070005@lsces.co.uk> <55FC45C7.9010202@gmail.com> <55FC4991.1050903@lsces.co.uk> <7872E9F4-AE19-4681-B2EF-215751AE4CBE@thesba.com> <55FC5A14.8020301@gmail.com> <55FC8D53.3080904@lsces.co.uk> <93020C79-3920-4FC8-8B6B-F1D16C6C709C@gmail.com> <55FD7613.1080403@lsces.co.uk> <9B86E351-089D-4356-BC8A-F683BA31D1A8@gmail.com> <5602778C.2070205@gmail.com> <56027EC6.1020206@lsces.co.uk> <560281B9.5050808@gmail.com> To: Rowan Collins X-Mailer: Apple Mail (2.1878.6) Subject: Re: [PHP-DEV] PHP 7.1 - Address PHPSadness #28? From: craig@craigfrancis.co.uk (Craig Francis) While skim reading emails (just got back from holiday), I wanted to = add... On 23 Sep 2015, at 11:40, Rowan Collins wrote: > A non-existent variable, however, is not something I've ever come = across in a database context - it would seem to require a result set = having rows with different numbers of columns. Imagine an admin interface with a table of orders (showing customer = name, date, link to view details, etc). Normally a simple SQL query can do this from 1 table (very fast). But once a month the admin wants to see a new column (maybe checking if = a particular product was in each order), and that uses a slightly = different query (joining a second table, which might be very slow to = execute). In the view code (assuming no other helper for creating the HTML), it = would be easier to read the following than using array_key_extists(): ... Admittedly I would probably use a variable to say if the column will be = there or not (because there is also the table headers to add). That said, this probably doesn't really add to the use cases... but = hopefully gives an example of a non-existent variable in a database = context. Craig=