Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105910 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 98622 invoked from network); 13 Jun 2019 17:38:13 -0000 Received: from unknown (HELO mail-io1-f41.google.com) (209.85.166.41) by pb1.pair.com with SMTP; 13 Jun 2019 17:38:13 -0000 Received: by mail-io1-f41.google.com with SMTP id u13so17527080iop.0 for ; Thu, 13 Jun 2019 07:51:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rEeyYFSKRdaxwcPC2jHTfdCsYCKjhC5T6wHoa9JB31Y=; b=uyTVoUjoInFkjozRTNueAh6ybSGHh+NQYxE+C786OBXAt6HWSjUjTAIganAHRy2+KZ cJ3crT7mAEZEwuGZWeiDWEC11HTnyZopHgifZS+Gm0lm26gt0MhAXVcPJNQTtxJ6+eO5 RvRkUo401toIPKY65zy/uCi3WaUXY8shaHiGQ7S2ghtfsO+X97vlkaoJpt0f2ISeg16/ ll9Ih3zfE8Ax3YrVsD/t6+c1Dnhx8KL+lJLMdXp3zL3n4X9MumJSa8BHxyIG4z4BAPWY rUNTTajANnW82gQwzUg+Gzvx+6TIrIQ06MlQmQXWoQLVUw/HGdFVrDERRPIrfTyVUiGP GUTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rEeyYFSKRdaxwcPC2jHTfdCsYCKjhC5T6wHoa9JB31Y=; b=nAyfSHaEoYZuf1GfsM61DMXeAa9LvCySalshyH58Nnl+MGqu3LK+cWUjC4quplxT0r 4jIP/fE2Ms+uAZ/k5tUs+33GSDo0kfJ11M3BeYe+qEOsYgY53Bt0SegteNUyQ7f2tR4o hyp9kRik45wop/adsNSFaLrha9q4Sqtzf7+12Bhpc/ACOhp7LiM27JPkHosoCMOlDksd GroLY6zp0YLu7fJII1WPtSCLJCg5qjnbNwtOykhbXuUzmoVZIq+FNbkDkwNDwM4eQCVZ pGBHODuUwozHz1w3HBT1EG+eC7WQck0qnC0vvfB6XSw2yKZx1qtsQoRlCeySruwzoGBD I0sA== X-Gm-Message-State: APjAAAXTFeOjm9kJIVYFg1c2eQUwvou4wSMuVskqNAiaEwEZKC97jk8j FZHI7izKKMV8v3/a1iva0qsDAv7+pNou70btgcI= X-Google-Smtp-Source: APXvYqx43ZFRJ8k2lQLWvN/IzJTyd2lMDkhL5NL82NVISHIspl5j7paqrOzjf88hQI5m1Qgbp27C79jJgs8q2IyuV10= X-Received: by 2002:a6b:5b01:: with SMTP id v1mr50053483ioh.120.1560437482795; Thu, 13 Jun 2019 07:51:22 -0700 (PDT) MIME-Version: 1.0 References: <5f35915a-4733-12d1-55ec-a4bfd69ed877@lsces.uk> In-Reply-To: <5f35915a-4733-12d1-55ec-a4bfd69ed877@lsces.uk> Date: Thu, 13 Jun 2019 15:51:11 +0100 Message-ID: To: Lester Caine Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000db34e3058b35a970" Subject: Re: [PHP-DEV] The real world ... From: rowan.collins@gmail.com (Rowan Collins) --000000000000db34e3058b35a970 Content-Type: text/plain; charset="UTF-8" On Thu, 13 Jun 2019 at 14:46, Lester Caine wrote: > Had I HIDDEN the warning the client would just have > ploughed on but now I can divert to fix the faulty bits of data and sort > the problem! It will be some silly thing missed, but in 20+ years of > code that are still a lot of those and simply hiding something and > waiting until later to clear the problems created is never going to be > right :( > Don't underestimate the ability of users to plough on in the face of the most obvious errors (and then on another day stop dead given the tiniest unexpected message). In this case, you already did "wait until later" - you waited until the client saw it, and had the time and inclination to mention it to you. There are far better solutions out there, as others have mentioned, that make sure *you* see the message in good time. Then you can call up the client and say "don't use this screen I think it's corrupting the data", rather than them calling you up after they've entered 1000 corrupted records. A generic message on PHP's default 500 error in place of the notorious white screen would probably be useful, but it should be limited to something like: > A system error has occurred. > Please contact the site administrator. > If you are the site administrator, please check your error logs for details of the error. Regards, -- Rowan Collins [IMSoP] --000000000000db34e3058b35a970--