Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105752 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 5042 invoked from network); 19 May 2019 02:40:27 -0000 Received: from unknown (HELO mail-pf1-f194.google.com) (209.85.210.194) by pb1.pair.com with SMTP; 19 May 2019 02:40:27 -0000 Received: by mail-pf1-f194.google.com with SMTP id q17so5412381pfq.8 for ; Sat, 18 May 2019 16:47:13 -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; bh=6bGx28BN3Y+UV7pn+ruf53RMyS8+uztQax0ZSTk+pMY=; b=KneqLK/qQXKOYXUh/HhV2DzCCcmG2nwNXpSb5W8Eoc1KMD1829c6CKDaOjWdC4uZAm 8iP9o1TvhTMslhyCcWKqbndK8qwLcC9thD8M0gnm2qpIm9Vj2nt0cxuj8Q9HYiKZgxFE CBKzrZQXRdjLYYRu+2FceZlN5/m5NsqX2KhLwLQPXDHFzuPmdQYS4yp4QrsbS7t0Sqb2 tEeNCeYtGn/9yjeP4ioJkWAXQXG8EDcf7ZEyDLm0wEXASObPiHLhT8sWuCCqWrhu+46l /VdmjY0ufBaSIqJGpZJneHalGmjnyLgcdqDu2CVdq2hdz4Tqq56wcQMs2glElFXeu1bP lETA== X-Gm-Message-State: APjAAAVqL0oVoAtN1fVZ29P3coCafl6IAsiYtcwrsaw1vktURMaVv7ew RahW+Q/ajNGGP/DCx0AZteCzWKeAq5uwpFqf6ZQ= X-Google-Smtp-Source: APXvYqwGWqJc5HU/bRy8WyhOMmk1MwsPX3uOxDxD1rnhE1Ts6lp76ABxeklofTzb9CDvHdknnQykCSrgHtPXBEFAs5s= X-Received: by 2002:a63:d04b:: with SMTP id s11mr67031821pgi.187.1558223232697; Sat, 18 May 2019 16:47:12 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sun, 19 May 2019 02:47:01 +0300 Message-ID: To: Robert Kopack Cc: Internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Changing the default value of SQLite3::enableExceptions() From: kalle@php.net (Kalle Sommer Nielsen) Hi Den fre. 17. maj 2019 kl. 23.20 skrev Robert Kopack : > > I feel like changing the default value of $enableExceptions to TRUE > makes more sense since that is what you would expect from the original > function call as it stands and is the least breakage of anything > already existing (since making it a required variable would throw > ArgumentCountError for any existing code). > > WRT the PR you mentioned (since it's my own), do you think it would be > better to change the current toggleExtendedResultCodes to > enableExtendedResultCodes and have a similar function prototype to > enableExceptions? I didn't consider that when I wrote my changes (to > be honest I don't use the sqlite3 class directly so I didn't know > about it, I only used the pdo_sqlite layer above it). I thought about proposing that, but I wanted to run this issue by internals first to hear others thoughts on the matter. I definitely think consistency is something we should embrace more and thinking about it for a day then I do think we should keep the naming similar, but avoid a design like SQLite3::enableExceptions(). -- regards, Kalle Sommer Nielsen kalle@php.net