Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97717 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73082 invoked from network); 12 Jan 2017 08:23:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jan 2017 08:23:42 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 104.47.37.112 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 104.47.37.112 mail-cys01nam02on0112.outbound.protection.outlook.com Received: from [104.47.37.112] ([104.47.37.112:17739] helo=NAM02-CY1-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D0/12-50165-D0D37785 for ; Thu, 12 Jan 2017 03:23:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=RWSoftware.onmicrosoft.com; s=selector1-zend-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=KK1Wg8rt6R7RjJvjJWfOQvh1gyf6SNPfGbjjb7/E0+Y=; b=l/+3d6Trebm4kB1AtIbOjL0zc962ZTiiPvW1IyKAodA6n5Igs8ZfPguo9wNJbSCrIKguaI2IxL3yNZOaZ+juHPYXZYKXPYnKiZsEmkfc819Hp4sI4Y192pD9NoSZR/jrCeG9/9sbFX6FRhERkchi9fffO5vpSvfJbr4q/j+qJwI= Received: from MWHPR02MB2477.namprd02.prod.outlook.com (10.168.204.147) by MWHPR02MB2509.namprd02.prod.outlook.com (10.168.205.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.829.7; Thu, 12 Jan 2017 08:23:37 +0000 Received: from MWHPR02MB2477.namprd02.prod.outlook.com ([10.168.204.147]) by MWHPR02MB2477.namprd02.prod.outlook.com ([10.168.204.147]) with mapi id 15.01.0829.017; Thu, 12 Jan 2017 08:23:36 +0000 To: Bob Weinand CC: Derick Rethans , PHP internals list , Joe Watkins , Zeev Suraski , "Anatol Belski (ab@php.net)" , Nikita Popov , Xinchen Hui Thread-Topic: [PHP-DEV] Change in type-hint representation Thread-Index: AQHSbAGJJH94e0ZZMkmDI5OUmOzW+6Ezav4AgAAN+yiAABvagIAA7QKY Date: Thu, 12 Jan 2017 08:23:36 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=dmitry@zend.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [25.173.117.4] x-microsoft-exchange-diagnostics: 1;MWHPR02MB2509;7:cOrxIYgzUpgu+Dgq4aX6dlMspzi3GXJnUd5l5/stRDcTmSeGUz9JD1GUMsSXykCKrIHeNjRobOU5SRw0I0cRyR3VumABexMwj1J+vzohJr4JccFGRyxcFKnmjpDs8se2loFXvp9D/GhkMvuhqgVfMUR1Jf2HLb0h70wx5xA56o+wVmfLDzdordEhq9653pfxgFRfm9VvkZLm6xgfUYHhbv3bm/VnEQT5yfegluUMHSHBSv5nC4jlGVydBf/+Vw+XxocMRcIteUgAveBpnacW+xgrrMsNJk5wR4FnVUkJLF/IMtNhZriU0BchCjsg2OFvZZlh9gbazAvHe8lV0WNWzxjHkviLyT+tQbzSfqckiD+rMIw+DwTgPNccbC0OGXn0gmJ8UU0+AfAJY0vHv7jENB0hB2HBcroht41F/2iWpNq7wgEWkQNfDQsXw6PFQVxKmX7T6ITeHKpKEbP4eEMV3g== x-forefront-antispam-report: SFV:SKI;SCL:-1SFV:NSPM;SFS:(10019020)(7916002)(39450400003)(377454003)(199003)(189002)(3846002)(76176999)(102836003)(105586002)(6116002)(106356001)(66066001)(3280700002)(74316002)(50986999)(54356999)(106116001)(68736007)(2906002)(3660700001)(4001430100002)(33656002)(4326007)(7736002)(101416001)(7906003)(97736004)(107886002)(110136003)(93886004)(8936002)(189998001)(9686003)(6506006)(229853002)(54896002)(6306002)(6436002)(2950100002)(6916009)(81156014)(122556002)(38730400001)(606005)(8676002)(81166006)(77096006)(39060400001)(236005)(575784001)(86362001)(7696004)(92566002)(2900100001)(54906002)(99286003)(55016002)(5660300001)(25786008);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR02MB2509;H:MWHPR02MB2477.namprd02.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; x-ms-office365-filtering-correlation-id: cd0bbb59-48f6-4954-6c9b-08d43ac44e35 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:MWHPR02MB2509; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(158342451672863)(166708455590820)(194151415913766)(192278398808882); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6041248)(20161123555025)(20161123562025)(20161123560025)(20161123564025)(6072148);SRVR:MWHPR02MB2509;BCL:0;PCL:0;RULEID:;SRVR:MWHPR02MB2509; x-forefront-prvs: 018577E36E received-spf: None (protection.outlook.com: zend.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_MWHPR02MB2477CB89268F97D72D837F68BF790MWHPR02MB2477namp_" MIME-Version: 1.0 X-OriginatorOrg: zend.com X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jan 2017 08:23:36.3575 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 32210298-c08b-4829-8097-6b12c025a892 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR02MB2509 Subject: Re: [PHP-DEV] Change in type-hint representation From: dmitry@zend.com (Dmitry Stogov) --_000_MWHPR02MB2477CB89268F97D72D837F68BF790MWHPR02MB2477namp_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi Bob, I don't exactly understand, what do you like. Can you explain, or may be make it on top of this patch? (I think I'll comm= it it on Friday) Thanks. Dmitry. ________________________________ From: Bob Weinand Sent: Wednesday, January 11, 2017 9:13:33 PM To: Dmitry Stogov Cc: Derick Rethans; PHP internals list; Joe Watkins; Zeev Suraski; Anatol B= elski (ab@php.net); Nikita Popov; Xinchen Hui Subject: Re: [PHP-DEV] Change in type-hint representation > Am 11.01.2017 um 17:37 schrieb Dmitry Stogov : > > The patch was updated according to feedback: added comments, better names= and encapsulation, less magic, better code reuse, keep a free bit in zend_= type for future extension. > > > > > > https://gist.github.com/dstogov/1b25079856afccf0d69f77d499cb0ab1 > > > Thanks. Dmitry. Looks good so far=85 Thought I've asked you before on IRC to somehow extract validation so that = we don't have to duplicate it everywhere. Validate (and cast if necessary) given a zval, strict mode and the represen= tation type (class present as ce? as string?) Also, perhaps a string representation of the type (reusable in reflection a= nd in error messages) Thanks, Bob --_000_MWHPR02MB2477CB89268F97D72D837F68BF790MWHPR02MB2477namp_--