Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124111 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 4F24C1A009F for ; Sun, 30 Jun 2024 15:45:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719762429; bh=3i0y5G7U1UaEcNV2UKGyqC9gQJI4KPPhXSIFkuu9uF4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=D8BRQvqeBCwZ4PhYx/vKRUgS5UB6uITsIrJP26k4rtiUl9QFhfJhWBakF4FnjBkvP HQB2CBbZV0MfyJ1766WOkaiafFLZ7PkOR/niW2Pvga95zIcGVVEt3+k40LDMlb3QRR uY5MMantHaUUnI28nLV+xiFpOCfIO/DknG3qhtvngqS+OWWGXF4uDO+u/QpwVPybkj 3MaY3r+tmfh1HeHPE99iiriTrb3I5rRoHYtgBomStEqAQKpVEvIS/lc1sv13FFOjTa sNg6RL/BZG0qPdkVnKplDO+kTdUHTa3zbGI5P4aD+vO+H/s9So8L1si4YAPHdF//MM huLycDdTjChtA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1110E18073C for ; Sun, 30 Jun 2024 15:47:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 30 Jun 2024 15:47:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1719762343; bh=B1ZGfmr/1xEfDVD8k51uHiv0Rw//T+S8yCHqteBFlGQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=Ll2Y88qnLCk7o6Qh8pSVJAuYZ/yHWu15o3GsRE/8xKJ2YY4wMNoBblZJTmvvIVGGu iNpveLqYohKeky+Yxz0+XfZOl1VeHzuPZAcOtyNAikFE8H/qRssMljPz4rtixa2JAC wDl1hJLZGFVCxzG42O1+uatBRBXdjsp+TmlyiFV1VLRiohssZwNoOxLE7ePeCVp6WK XkKCMEi/kF8fGaIOoioRQxBQhbDkUma2cnYpHhaL+OvaKqgnDQQBtYwZj35aa8T1hi hM7jcLROCR4FCrkA1zHBMCAVe8+FKYVUcfmD7WiNtjMuVmpV4tO+VCab3c1SU74izP 4iwfRUcQtTBaw== Message-ID: Date: Sun, 30 Jun 2024 17:45:42 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Subject: Re: [PHP-DEV] [RFC] [Discussion] Add bcdivmod to BCMath To: Rob Landers , Saki Takamachi Cc: internals@lists.php.net References: <668168A7.4040005@adviesenzo.nl> <3B23E039-D90F-4F84-9ECE-C6A9A3E145AF@sakiot.com> <870bb837-400c-4a86-ab49-2ffef9d80ce7@app.fastmail.com> Content-Language: en-US In-Reply-To: <870bb837-400c-4a86-ab49-2ffef9d80ce7@app.fastmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi On 6/30/24 17:31, Rob Landers wrote: > - list() -- kinda That is not a function. > - array_shift(), array_pop(), etc. These do not return by out-parameter. These return the value and modify the array by reference to remove the returned value. > - preg_match*() These only return supplementary data by an out-parameter. The main result ("does the RFC match") is returned regularly. > - all the sorts > These do not return anything, they modify the array in-place, which is something different than returning something. Best regards Tim Düsterhus