Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20846 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7184 invoked by uid 1010); 29 Nov 2005 17:26:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 7169 invoked from network); 29 Nov 2005 17:26:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Nov 2005 17:26:50 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:59427] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 50/3A-14828-95F8C834 for ; Tue, 29 Nov 2005 12:26:50 -0500 Received: (qmail 26648 invoked from network); 29 Nov 2005 17:26:46 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 29 Nov 2005 17:26:46 -0000 Message-ID: <438C8F54.9010001@zend.com> Date: Tue, 29 Nov 2005 20:26:44 +0300 User-Agent: Thunderbird 1.5 (X11/20051025) MIME-Version: 1.0 To: Gareth Ardron CC: php-dev References: <438C7A4C.9090503@fission.org.uk> <438C853D.8050608@zend.com> <438C8E5E.5030907@fission.org.uk> In-Reply-To: <438C8E5E.5030907@fission.org.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] is_int/is_numeric possible bug From: antony@zend.com (Antony Dovgal) On 29.11.2005 20:22, Gareth Ardron wrote: > Antony Dovgal wrote: >> >> ./sapi/cli/php -r 'var_dump(is_int("jkhdsjh"));' >> bool(false) >> >> ./sapi/cli/php -v >> PHP 5.1.2-dev (cli) >> >> What am I doing wrong? > > well that's interesting. > > I think it's something to do with the way the var is passed - so could > even be a problem with the apache sapi. I can hardly believe in that because the engine doesn't depend on the SAPI used. Execute this code and see what you get. > (I was using apache 1.3.33 > (stock debian release) just so you know.) And PHP from .deb too? *That* could be a problem. -- Wbr, Antony Dovgal