Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105753 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 9224 invoked from network); 19 May 2019 02:49:41 -0000 Received: from unknown (HELO mail-pg1-f176.google.com) (209.85.215.176) by pb1.pair.com with SMTP; 19 May 2019 02:49:41 -0000 Received: by mail-pg1-f176.google.com with SMTP id i21so4984623pgi.12 for ; Sat, 18 May 2019 16:56:27 -0700 (PDT) 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:content-transfer-encoding; bh=DZpz8ouoXwteclSUsOyma/xJ9g5ernmXEdso1UucKDc=; b=iPm2g30ytjPB6gHiXJ8yrCP8MoGxnh6E+nvFNbFyhdRrZBtokKFQqeG4GzObW9xxcL 9fxHOy88Zwx0lePLapet3UFGmxwJbnCcc3nw6fVHqNv3gmXva/mEh5jwi4e+X835Cvdt KPDu1ioaJyPpdQKhFFC3f8iXMp3ltes/zQfmqPyrNw5JhDaX4T0TWw5rZ60N09c9QdV6 UfcyN+MNDbzkSkyfh7Tz56prvxgEbo2ZEIp58sdozyZ9u3S/TzLTsfGmFw/9LbOcw4+d ZE8APRU6tdB5GNCa0mwloV4hUZHfJde+1a4jG4GR2+WA2Oy/HZZVkeT09WPnV1M/PQfM 40kg== X-Gm-Message-State: APjAAAXpsDod/tbuQk2DnxJLIE0mkSgRmLsYO6y5cetv2qMQS0+r1C6x j0Sr3NBr6eURw4kn8wjkJU3X/NeWXMt2i5rFxes= X-Google-Smtp-Source: APXvYqyI6VBX6h1ozit2VCPNpilIZd1i9y7nSKbdy91FphcfnPddu1DhjL1fin60dWztZZXFT4cner3YijLC9ln+6E8= X-Received: by 2002:aa7:8d50:: with SMTP id s16mr9506884pfe.96.1558223786683; Sat, 18 May 2019 16:56:26 -0700 (PDT) MIME-Version: 1.0 References: <1b95b6af-adc5-0f69-b277-9f7c6b30345f@gmx.de> In-Reply-To: <1b95b6af-adc5-0f69-b277-9f7c6b30345f@gmx.de> Date: Sun, 19 May 2019 02:56:15 +0300 Message-ID: To: "Christoph M. Becker" Cc: Internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: Changing the default value of SQLite3::enableExceptions() From: kalle@php.net (Kalle Sommer Nielsen) Hi Christoph Den l=C3=B8r. 18. maj 2019 kl. 13.00 skrev Christoph M. Becker : > However, I don't think that we can change the default value in the near > future for BC reasons. Deprecating (7.4) and removing support (8.0) for > calling the method without argument would be the way to go, I think. Yeah I agree here. We could go a similar around to what you proposed for the curl version function, something like (for PHP-7.4): if (ZEND_NUM_ARGS() =3D=3D 0) { /* E_DEPRECATED: Relying on the default value of $enableExceptions is deprecated as it will change from FALSE to TRUE ...*/ } And for master simply making the parameter required. I suspect the impact of this is very minimal as most users of this would not be affected by this proposal unless its a bug in their code (as I don't expect anyone to call ->enableExceptions() to *disable* them being anything but a bug). > [In a somewhat distant future, we might consider reintroducing support > for argument-less calls, but in this case it might make sense to let the > method work as getter (i.e. without argument, it would return the > current value without changing it).] Currently SQLite3::enableExceptions() will return the old value, I think we should retain this and only change the default value. --=20 regards, Kalle Sommer Nielsen kalle@php.net