Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103171 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 61900 invoked from network); 17 Sep 2018 21:01:44 -0000 Received: from unknown (HELO mail-it0-f49.google.com) (209.85.214.49) by pb1.pair.com with SMTP; 17 Sep 2018 21:01:44 -0000 Received: by mail-it0-f49.google.com with SMTP id x79-v6so11688867ita.1 for ; Mon, 17 Sep 2018 10:07:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=d/0v3CLH0x9lBZZnYMwCyb9VN1UjqbrjNQXRMUyjeWw=; b=WuM9192jdpvfCu1JZR72o8Ngrw87t+OcwobE2wR2QiELXAh4KGBN3j/lrf3tA+50qO LYeTJo0vC13o4CSVoRxBBk66FBN3rKi0fsTZAIQjUE7GOtreCNyQL1LhxmPALLjAelRF F6GW90ae4gfAP4dcACGGTixtTHrZh76oUAEs+MRdUrLmLlquy+AL8/jcZiwsMbSQTGJQ QFxpJkYoMBfq457dN3WdFVfNU7Ww3H99KdER2QQOHblfjHCneYlEwCsmAZ8IISVuMt4q Etof/sNncCoA/ROZfNeebrL9wSMsl1qNrNMe76kfAEwi8uR+lrBEmexNKGBmya9cxcxx pOng== 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=d/0v3CLH0x9lBZZnYMwCyb9VN1UjqbrjNQXRMUyjeWw=; b=INy4NTXX/pc7X0zrp0fXSuE7+bwDlIrssjxj7XAtiFAJX2tLWNs4EtI8DiOqiK5An4 a4NKPn2Qsge8TNESnnTGgXHeQr0Btt2GhqqhaEFVGM+ubA6x1jH1ygNdiz1gZSyntbfH CMI2d/Mv40+43xWvsCo6EGDoHeUTD5XJHjWi2cpIDQ2ULCsDObZyKAVOAST+7LBx8sdm 25qPC18mpmZJbJWoop6ACnFS4NJRvMRyWwzHyfh8oRrTIfgz/xmyR/lOTAbjxvG0sytb 76P6i9oJ7ed8DDYxkOD6Ti121ELye9sctc3I6iIDQnhK+1KR1d1iic7nOGjWneRHvO7y zE4Q== X-Gm-Message-State: APzg51CGmM/YEEsqx+EdE6gZx3gRhKq//sWxRGufaWND1eEz6qh+jEDx Ki/H4+tNbkmEi0/IcTcCIXzrMnM9hUkSGaIa+yU= X-Google-Smtp-Source: ANB0VdYWS0Aww7Lpdw1xUsCab0TZ8VOJPrRdbjM20Zp6JPnx8gmqOd/txT0cFa1gy1CAS/CSmGyI3ol/osDD9FKLYNw= X-Received: by 2002:a24:c303:: with SMTP id s3-v6mr7823108itg.10.1537204058917; Mon, 17 Sep 2018 10:07:38 -0700 (PDT) MIME-Version: 1.0 References: <381a49ae-eed5-889a-8d0c-bec4b4531d82@gmx.de> In-Reply-To: <381a49ae-eed5-889a-8d0c-bec4b4531d82@gmx.de> Date: Mon, 17 Sep 2018 19:07:27 +0200 Message-ID: To: Christoph Becker Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000e110b705761435ce" Subject: Re: [PHP-DEV] Unbundle libsqlite3? From: nikita.ppv@gmail.com (Nikita Popov) --000000000000e110b705761435ce Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Sep 17, 2018 at 3:16 PM Christoph M. Becker wrote: > Hi! > > We bundle an unmodified libsqlite3 for at least two years. Since then > all updates go into any dev, alpha and beta releases, while security > patches (usually backports from libsqlite3) go into stable branches. > > ext/sqlite3 requires libsqlite =E2=89=A5 3.3.9[1] which has been released= on > 2007-01-04[2] (i.e. more than eleven years ago!). ext/pdo_sqlite has no > specific version requirement; there is a check for sqlite3_open()[3] > which I believe is available since 3.0.0. > > So is there any particular reason why we still bundle libsqlite3? > > [1] > < > https://github.com/php/php-src/blob/php-7.3.0RC1/ext/sqlite3/config0.m4#L= 37-L47 > > > [2] > [3] > < > https://github.com/php/php-src/blob/php-7.3.0RC1/ext/pdo_sqlite/config.m4= #L55-L58 > > > +1 on unbundling libsqlite. If we a) don't patch a library and b) it is widely available in distros, then we have no business bundling the library. Bundled libraries are extra maintenance work for us and a security risk for users (we are slower at updating bundled libraries than distros). Three more libraries that we (as far as I know) bundle without modification are: * libzip: Unbundling was already planned for 7.3 but held up due to some CI issues. Next try at https://github.com/php/php-src/pull/3532. * oniguruma * pcre I'm not sure how widely available libonig and libpcre2 are. Nikita --000000000000e110b705761435ce--