Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100052 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61455 invoked from network); 26 Jul 2017 17:06:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jul 2017 17:06:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.128.182 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.128.182 mail-wr0-f182.google.com Received: from [209.85.128.182] ([209.85.128.182:37550] helo=mail-wr0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 31/7A-49004-03CC8795 for ; Wed, 26 Jul 2017 13:06:57 -0400 Received: by mail-wr0-f182.google.com with SMTP id 33so77644352wrz.4 for ; Wed, 26 Jul 2017 10:06:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golemon-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=MZ60fkNT+5Z4XL21qMmHtXVkzUofIgtZkRd1oroAbcY=; b=KDzCe9MVhYJLHFeOfpkgHe7Os1sBugq9CJUp7+bZREJJKO2Tru8zulAYCZnglQX4+x y2Y2pBUNzQNj+ZbyEJSWkGuz6HhaF1MKz6aMgTxQS8tqB4rOQRSQbLS+/qDQw0zxQu7J DQO0bEu9dv7yAydUEDcr217Gk4JcVvTrxBEOAPYe3uGPcjrwNUSZF+RsHuFnysvM/EUr r5cZ+vyDRoYOBlDEQ/Z64/HF8tGo9uS3odpVm7Ne3w6Jj25xaROov9Hzcl3/TIF7ubP3 EZ98WBd1t3bjzf9vmnFhCg+hGiVnz19TU4xgiut832FXuLcP4sMFSfaCTBJWwMk3X7Dt A1JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=MZ60fkNT+5Z4XL21qMmHtXVkzUofIgtZkRd1oroAbcY=; b=NP+CKpm8pHAJSfNQNtX/L+CZFNPHFTlxMXuKZ5Uwq9Um5CvBWqwTuvX6HrEYcUQrGi AUINhTOUwyL6hpvMYsE32iQHoPqONY+sERuKpwR3BqduuHU0+DOj3G+8Th9xaIwV0JgY PnbGxVWX3SYSA/Q+fm6Scu/sVgJFUpyohzJ0EKj718sFS+4VnjHD7PRk1ddw3M+JxEEE 4YJxQhvGvs1NkKqFvOkp2gDR7V//jKe6G+dN7Ps5H1Wdf4nx65P1EV+FHlbODOlRRa7W lYSX+BumnTAGxu8ghoQOARrcXNv+N5D0MxQ5VT3Rm8NKc1+GfpR11yBZgC45KM2EWOoI TZhA== X-Gm-Message-State: AIVw112xm85pbYj+unZzoA1tyCE+pb2BK9ECWDefhdszJDx3aBzwcxgF 6GurXIElcBgeejUdknn2frF+3Pf1Nm3BHE8imA== X-Received: by 10.223.134.180 with SMTP id 49mr1354552wrx.157.1501088814334; Wed, 26 Jul 2017 10:06:54 -0700 (PDT) MIME-Version: 1.0 Sender: php@golemon.com Received: by 10.223.169.234 with HTTP; Wed, 26 Jul 2017 10:06:53 -0700 (PDT) X-Originating-IP: [206.252.215.26] In-Reply-To: References: <2177132.cc4GXqHK7k@mcmic-probook> <1695890.Q3ruuQZBqi@mcmic-probook> Date: Wed, 26 Jul 2017 13:06:53 -0400 X-Google-Sender-Auth: LBYIfAAgCQ7TYzK1AGahV9TS5-w Message-ID: To: =?UTF-8?Q?C=C3=B4me_Chilliet?= Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] LDAP controls support API [Question for the RM at the end] From: pollita@php.net (Sara Golemon) On Wed, Jul 26, 2017 at 12:48 PM, Sara Golemon wrote: > On Wed, Jul 26, 2017 at 12:11 PM, C=C3=B4me Chilliet = wrote: >> As ldap_exop was merged in 7.2, is it possible to have a BC on it for 7.= 3 or not? >> It would be by adding options in the middle: >> resource ldap_exop(resource link, string reqoid [, >> string reqdata [, array servercontrols [, array clientcontrols [, >> string retdata [, string retoid]]]]]) >> > I'll be honest, the code in this function looks bizarre to my eyes > Rather than vague "eww" motions, here's a (suggested) commit on a branch in my checkout which you might choose to apply to ldap_exop() (and perhaps apply to other functions in this file). https://github.com/sgolemon/php-src/commit/5b3f4c2fb9e529880ec74e61f9e27aa4= 1ec7f023 Your code isn't broken as-is, these idioms are just going to make it easier to read later on and hopefully will help you understand PHP's module API better. -Sara Note: I don't know for sure if this compiles. If not, it should at least be close.