Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105709 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 16297 invoked from network); 15 May 2019 04:09:57 -0000 Received: from unknown (HELO mail-pf1-f169.google.com) (209.85.210.169) by pb1.pair.com with SMTP; 15 May 2019 04:09:57 -0000 Received: by mail-pf1-f169.google.com with SMTP id t87so431286pfa.2 for ; Tue, 14 May 2019 18:15:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1S+Q5TF4mnLRXzig6SFBPEoDJabE0WRPApK6Z1LiGzo=; b=q+SEPTa9uuJEvx7VUk0hR4zUmUMToLqpOtoq99e3ukKLqy02HhBW7Fur5ABiXfbhlY YVBPWou/Vur4MJnTIwFnv6Z6l/30cS7H84j02ptlBXQhLos9fDtD4ljChtj+jnzxr5TX xBs2nZEMv05lTHF1ejZa3WkoFCoxKdBcZtJZKm56n6J1Iy5LgKPeirTXiYbriXODlp5R pND8SBeFZY3wlygzIUACAyDX+TXicTAbczhcygdL9pSVax0pYcLcBtNGvUUkjWx+OuVU jFJIl+0bJ3M/aa/cbNxKIJ5f+6WhDROaYbq8CgfdNUtszObdp9Q5H9gEIMcffZAfL9LL HPeg== 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=1S+Q5TF4mnLRXzig6SFBPEoDJabE0WRPApK6Z1LiGzo=; b=ClNzYADJSyXeasRq158yzBWjjeafruK+GGNiAa6RwALchNEeq+TePbDOJH16EfVewA +KzBQheie7mAVYivQ4rr3GN40Tw8MLd6zt6tw/QpgxzjkAF0LLBQ0SM35o8N2X3wLUse e8UH8HfYWpNa9rjjOyGP+OToNEtnT6QlSSXcZCUOGGJT7VZwws4eavJfnnGXOSXnFl6x a/nnTrK4kS8dOnbBWuTB1S8p9GQEK1b32U3Qn2JUuC7UOjz9cSLoXlacL5HFlnkCqgny AWfaZaciaSnh7irSH4WsB2HLdmDWzrzQK/IVZPHnYCl5i6Asqk1R7R6aPvketv3GKp88 JWmA== X-Gm-Message-State: APjAAAVX+TL1+pF9RxwI+3tmzIQkmo/IAJ/iU8IaamssHFGoc5zwjxR6 EgUOWPN95y4t13AqgoCGuh7O/E+M2QlbUuX6Wy33bZ6mRF4= X-Google-Smtp-Source: APXvYqx3/GQQRoFm4q17WEdOpa59LGFxnKgij/k+VYmvoJwuTAQB4Eas7qiDXJNXgtoQfQELu9W9f5WWgNKbJbBUGTk= X-Received: by 2002:a63:7146:: with SMTP id b6mr35711335pgn.426.1557882943020; Tue, 14 May 2019 18:15:43 -0700 (PDT) MIME-Version: 1.0 References: <916eb56a-3336-9e65-0f70-f1557975544d@beccati.com> <79b7d381-e56e-441b-3436-d6f2024704c6@gmx.de> In-Reply-To: Date: Wed, 15 May 2019 02:15:31 +0100 Message-ID: To: Matteo Beccati Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Re: [RFC] Allow throwing exceptions from __toString() From: Danack@basereality.com (Dan Ackroyd) On Tue, 14 May 2019 at 17:55, Matteo Beccati wrote: > > Perhaps the section can be expanded to illustrate to non-internal people > how much work it is to upgrade the average extension or what happens if > they don't. > It will vary per extension. For some it will be none. For others it will be 'some' time for each place the extension converts a PHP value to a string. Maybe a couple of hours for the first one, less time after that. > what happens if they don't. Immediately nothing. Eventually, when a __toString() method throws an exception, and the extension doesn't check for an exception being throw, bad things will happen. But in my opinion, if people don't understand the implications of the RFC even after reading the details in the RFC and this thread, then this probably is an RFC they should skip voting on. cheers Dan Ack