Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114256 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 83928 invoked from network); 30 Apr 2021 08:48:57 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 30 Apr 2021 08:48:57 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 15DC91804B5 for ; Fri, 30 Apr 2021 01:53:56 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 30 Apr 2021 01:53:55 -0700 (PDT) Received: by mail-lf1-f46.google.com with SMTP id n138so109149588lfa.3 for ; Fri, 30 Apr 2021 01:53:55 -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=8fHhbgTMaAIGhvwcZ2kxQ4989RzoU+HRVkaRimjwuT8=; b=SF4zLYsN5tYxLwL/mzwiAOcwowUAX+gIi8F4XIITmVOj3kSvHPhYLk4Db3AyjZPmZw jioRNyjNHckOoyOr4CEXvRImATcE/4Lmd199WwtMlBhYFDWoujcF2sFeZBwzFCblM0C3 18ulHugy2cS7KgtMf5gx/ein4S5keXt1pagQ+DOTDJPgb+9PUjewjQhNHk6ENUfw/W3L 7ISfvAQCP/WfzDi/F/FPyjfQOCkUno04u/3Ju92Vf7cr7Xgs7k6ng9iWUUp+E2c1hdBn XH+Ym0b74K9EtLt5j+YWbPqCge9oN4ykwIwqKDgoBV9HA1lRoWMNQee9Pmu8OuSLKPPs +NaQ== 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=8fHhbgTMaAIGhvwcZ2kxQ4989RzoU+HRVkaRimjwuT8=; b=H+VRu5vzGA8RQUL1mgr4pvDhuaacI6eFHypUPEr63SkA2QcWx/fMd4zpNmQeh5q4Ub fs1jVCrjYg0DjStoBgoiB0YK0u+05HLlumZg93giEh/EnbODhuBJXQXL7QAhcmKzTY1a q0MjSpRnPUQnyVfb7Ub8/xZ7sxfr7Mh6CMnr3jzLcBtAnoHWdaVuNjYW+P8o9NgION/K hmOJLdvXDBKDqaANgQVv+zYx3q+Zwie7aYnW/PZLeMvJ3J88sazeLIaKSQHsYnEv3x5K 7NVCpBaIKfV4MT0znindQz2XqNRzI6rntDigoTuCeHopTOHMv2I7YMXpy6pJR8nCgZVz fs+A== X-Gm-Message-State: AOAM5319sScLdwk5AG0aCz4UxhGiLvbR74hYUZImWqQ4zQ6NcAmWUGOg f9hUCAp0/ZyHfyfpB7LGmiGb8EuKC1z21gs4Zu8= X-Google-Smtp-Source: ABdhPJxXbPjb1p4+TgfzWcxWzdbl4mwPTdG/XX1+ewheLmSyJ9DJPoZ135RIAD3DAXAn+FW8wfi+pn53JAWD0e7SCeA= X-Received: by 2002:ac2:5f6a:: with SMTP id c10mr2794202lfc.286.1619772832588; Fri, 30 Apr 2021 01:53:52 -0700 (PDT) MIME-Version: 1.0 References: <035f01d73d0f$654bcff0$2fe36fd0$@gmail.com> In-Reply-To: <035f01d73d0f$654bcff0$2fe36fd0$@gmail.com> Date: Fri, 30 Apr 2021 10:53:36 +0200 Message-ID: To: Hamza Ahmad , Christoph Becker Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000004da96205c12cc00f" Subject: Re: [PHP-DEV] Why am I unable to use 'readline_on_new_line()' on my windows machine? From: nikita.ppv@gmail.com (Nikita Popov) --0000000000004da96205c12cc00f Content-Type: text/plain; charset="UTF-8" On Thu, Apr 29, 2021 at 5:51 PM Hamza Ahmad wrote: > Hello Internals, > I am unable to call readline_on_new_line() function. > I am posting this to internals to confirm whether it is a bug or an issue > with docs. > The manual suggests that this function is available on php 8. > https://php.net/manual/en/function.readline-on-new-line.php > However, when I invoke this in my script, it informs of calling an unknown > function. Other readline functions, such as readline(), > readline_read_history(), readline_write_history(), do work. > I wrote to shell `var_dump(function_exists('readline_on_new_line'));`. It > responded with `bool(false)`. I wrote, > `var_dump(extension_loaded('readline'))`. It said, `bool(true)`. > Note: my PHP version (PHP_VERSION) is 8.0.5. > Any type of help will be appreciated. > Kind regards > Hamza Ahmad > Hi Hamza, This function is only available if the HAVE_RL_ON_NEW_LINE feature is available. I'm not sure whether the readline version on Windows doesn't support this, or whether the flag just isn't set. Maybe Christoph can comment on that? Nikita --0000000000004da96205c12cc00f--