Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86593 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40221 invoked from network); 11 Jun 2015 11:25:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jun 2015 11:25:06 -0000 Authentication-Results: pb1.pair.com header.from=kluev.andrew@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kluev.andrew@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.193 as permitted sender) X-PHP-List-Original-Sender: kluev.andrew@gmail.com X-Host-Fingerprint: 209.85.217.193 mail-lb0-f193.google.com Received: from [209.85.217.193] ([209.85.217.193:34417] helo=mail-lb0-f193.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 80/A0-35910-01079755 for ; Thu, 11 Jun 2015 07:25:04 -0400 Received: by lbio15 with SMTP id o15so362958lbi.1 for ; Thu, 11 Jun 2015 04:25:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=F6yRiBaDNQ7QwVWC2mE2dxYTKKW09rxhyRc8/XOr+Lg=; b=Fy7QfuDu9jPA8Hl4O186g6lxHWcI7Z2B8/XrgeUiJ6vjq0NBNQPDO5PcZF+jY7lskN yKERZGFNo0w/R3uSyaDE2utz+RfKjZ1UlQ6sSsCwy4cRME6hOnS9raC6/pe3b/nlohRc k8QqJASxBWR0jpVE51R3NTPpfv3NjlWFFKKoWI/KdM8e6QEH/i9iUjIz2iSqQbHG1/jE 7WElR7e3Z5LEVA6Et/I1C+DVA8p90ZXbNpY0q4a671HA/4msniywwvoG2D7SkmbbEbPR kUFrWet0QZ06t78GRGFgRQUE4rBEfGva8BIe4AN+fnIGyown9w7QmISYn6KmAB952JTw 8UUg== MIME-Version: 1.0 X-Received: by 10.152.43.134 with SMTP id w6mr9127844lal.120.1434021901353; Thu, 11 Jun 2015 04:25:01 -0700 (PDT) Received: by 10.114.184.81 with HTTP; Thu, 11 Jun 2015 04:25:01 -0700 (PDT) Date: Thu, 11 Jun 2015 14:25:01 +0300 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=001a11c1a80807c8e605183c3e14 Subject: Some strange bug From: kluev.andrew@gmail.com (Andrew Kluev) --001a11c1a80807c8e605183c3e14 Content-Type: text/plain; charset=UTF-8 I have code: ------------------------------------- echo 'php_sapi_name: '.php_sapi_name().PHP_EOL; echo 'max_input_time: '.ini_get('max_input_time').PHP_EOL; echo 'max_execution_time: '.ini_get('max_execution_time').PHP_EOL; set_time_limit(2); echo 'max_input_time: '.ini_get('max_input_time').PHP_EOL; echo 'max_execution_time: '.ini_get('max_execution_time').PHP_EOL; sleep(3); echo 'how it works?'.PHP_EOL; ------------------------------------- And it's output ------------------------------------------------- php_sapi_name: cli max_input_time: -1 max_execution_time: 0 max_input_time: -1 max_execution_time: 2 how it works? ------------------------------------------------- or ------------------------------------------------- php_sapi_name: fpm-fcgimax_input_time: 60max_execution_time: 30max_input_time: 60max_execution_time: 2how it works? ------------------------------------------------- I have no idea why this is happening. On Windows PHP 5.4.13 (cli)(built: Mar 15 2013 02:07:14) it writes (Maximum execution time of 2 seconds exceeded....) Some info about my pc: php -v: PHP 5.6.7-1 (cli) (built: Mar 24 2015 12:30:15) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans uname -a: Linux andrew-deb 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-2 (2015-04-13) x86_64 GNU/Linux php -i: http://pastebin.com/vzeHZJn1 This is a bug or something I do not know about php? --001a11c1a80807c8e605183c3e14--