Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99199 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 249 invoked from network); 26 May 2017 09:57:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 May 2017 09:57:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@fleshgrinder.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=php@fleshgrinder.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fleshgrinder.com from 77.244.243.86 cause and error) X-PHP-List-Original-Sender: php@fleshgrinder.com X-Host-Fingerprint: 77.244.243.86 mx105.easyname.com Received: from [77.244.243.86] ([77.244.243.86:54204] helo=mx105.easyname.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 31/43-10292-61CF7295 for ; Fri, 26 May 2017 05:57:44 -0400 Received: from cable-81-173-132-37.netcologne.de ([81.173.132.37] helo=[192.168.178.20]) by mx.easyname.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1dEC01-0007Tg-IR; Fri, 26 May 2017 09:57:39 +0000 References: <83c4075f-b694-4e83-fc09-4210e0091216@fleshgrinder.com> To: php-internals , Nikita Popov Message-ID: <50cca129-1f51-5446-7ddb-509f54959e6b@fleshgrinder.com> Date: Fri, 26 May 2017 11:57:35 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="QSCjUKoM9o5pP20CxjTVPuUABq1TEHcBk" X-DNSBL-PBLSPAMHAUS: YES Subject: Re: [PHP-DEV] [RFC] [Discussion] UUID From: php@fleshgrinder.com (Fleshgrinder) --QSCjUKoM9o5pP20CxjTVPuUABq1TEHcBk Content-Type: multipart/mixed; boundary="FbXenK8feerXwiSuiQRVMqDNnwMQRn1X2"; protected-headers="v1" From: Fleshgrinder To: php-internals , Nikita Popov Message-ID: <50cca129-1f51-5446-7ddb-509f54959e6b@fleshgrinder.com> Subject: Re: [PHP-DEV] [RFC] [Discussion] UUID References: <83c4075f-b694-4e83-fc09-4210e0091216@fleshgrinder.com> In-Reply-To: --FbXenK8feerXwiSuiQRVMqDNnwMQRn1X2 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 5/26/2017 11:00 AM, Nikita Popov wrote: > To clarify, I certainly do *not* want the behavior that was implemented= > here. The correct way (in your specific case) to handle this if by usin= g >=20 > if (zend_parse_parameters_throw(ZEND_NUM_ARGS(), "") =3D=3D FAILURE) { > return; > } >=20 > or adding a zend_parse_parameters_none_throw() API. >=20 > Of course this should not throw a warning and of course it should not > return NULL, because that would be inconsistent with how the other UUID= > methods behave. Of course it should not allow silently passing addition= al > arguments, because that would be inconsistent with both how the other U= UID > methods (with at least one argument) behave and with how PHP in general= > behaves. >=20 > Nikita >=20 Thanks for the clarification. I changed the implementation to always throw. This solves the issue for me. :) --=20 Richard "Fleshgrinder" Fussenegger --FbXenK8feerXwiSuiQRVMqDNnwMQRn1X2-- --QSCjUKoM9o5pP20CxjTVPuUABq1TEHcBk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJZJ/wPAAoJEOKkKcqFPVVrcUQP/3g+jJlIPirQNy8fB8HYM7Ru qXj9c0iHjUTaWyTYihdjSAzViPuByPUkckRkEAJR9qblSIJD3HtreQ9EsCENDQYp 0WkVldbuhRwUUCV4LTLMFWwF/fYiAAkSBqy0UmKlGjR2DBOhotmBbJvje5s9FeXV ipzJiREoNKSn6VoqqKR4rZHsq8jR/7pUB0BUtgvB21cd+ugBfnNoF3kIuS89SWjj +OZbu+GFnPyyUX1XH6T8DNJhXKAbYPkGqxcZVRz/OcrZ5p2sLOH45RlEuaw+LAIe vZKkrnM6fFDho+yBDquNDgFXjkzR9l4Ex1quiiTxlZxQbf7211yQ7DaF1F9pNSNz 84M77ZX+RFQGZtB2Df66DAVx6ui0OuwZx+R/dI6Z5n9U4J3TKStPMS2Ly8cLr0dq UGFvZ21tf/zy6s/93iHglP07QA1gco/GguTBTgJa1XBjP3/TQGnKpO78nZUtUNmC UlyYFLnJiZPKmKJPrQ2ZcjWIcCwpMn6dtWIiGI1TVUPYGDFLHFlG4B8T9rIIM0Ia XeiD5qd7vpSyykFYGNkexasakwNozLClHC93w69jfc+sczg63gjXG0LpxETohyHS rJdZvruUQFvQq9h0Rak+pX1m9NPVO8z/cm4lDz5D7876/wfzB9qDn1mHuq/uB3LO 7GVyfoK3ir2KsQPPmvp6 =SZp6 -----END PGP SIGNATURE----- --QSCjUKoM9o5pP20CxjTVPuUABq1TEHcBk--