Bug #70964 [Csd->Nab]: $argc and $argv return wrong value

From: Date: Thu, 17 Dec 2015 10:53:59 +0000
Subject: Bug #70964 [Csd->Nab]: $argc and $argv return wrong value
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-197966@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70964&edit=1 ID: 70964 Updated by: cmb@php.net Reported by: jirapat at gmail dot com Summary: $argc and $argv return wrong value -Status: Closed +Status: Not a bug Type: Bug -Package: PHP Language Specification +Package: Scripting Engine problem Operating System: Windows 10 PHP Version: 7.0.0RC7 Assigned To: ab Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2015-11-25 14:21:23] ab@php.net I've just tried and couldn't repro the bug just with "php file.php". So confirmed it's nothing with PHP. Thanks. ------------------------------------------------------------------------ [2015-11-24 08:47:06] jirapat at gmail dot com Sorry after I found my problem now The problem is from my fault on php.bat in my system path the bat file is like this @c:\php\php.exe %1 %2 %3 %4 %5 %6 %7 %8 %9 %10 and windows 10 push the last argument with %10 (maximum variable of bat file is 9) ------------------------------------------------------------------------ [2015-11-24 06:41:22] laruence@php.net @welting are you able to reproduce this on windows? ------------------------------------------------------------------------ [2015-11-24 05:25:20] jirapat at gmail dot com I'm not sure are you running the same version and the same value like me ? to reproduce this just simply run php.exe arg.php or may it can be confused by old dll , I just copy all the file after extract it to same directory of php and run like the command above ------------------------------------------------------------------------ [2015-11-24 04:07:02] laruence@php.net I can not reproduce this ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=70964 -- Edit this bug report at https://bugs.php.net/bug.php?id=70964&edit=1

« previous php.bugs (#197966) next »