Commit Graph

13745 Commits

Author SHA1 Message Date
umpirsky 8de7813cab [2.3] [Console] TableHelper 2013-04-07 16:24:41 +02:00
Romain Neutron bec8ff16e8 Fix timeout in Process::stop method
- The timeout is ten times more than set.
 - The timeout does not occurs, it is actually blocking until the process dies.
2013-04-07 16:17:09 +02:00
Fabien Potencier 783ae3adff fixed CS 2013-04-07 16:10:23 +02:00
Fabien Potencier 72b4f86d09 merged branch romainneutron/process-timeout-2 (PR #7583)
This PR was merged into the 2.1 branch.

Discussion
----------

[2.1][Process] Fix Process timeout

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #6976
| License       | MIT

This PR fixes timeout in the process component.
Timeout can now be float values. The precision of the timeout is given by the `Process::TIMEOUT_PRECISION` constant.

Note : The timeout works when running the process with the `Process::run` method. When using the `Process::start` method, the `Process::checkTimeout` method should be regularly triggered to perform a check.

example :

```php
$process->start();

while ($condition) {
    // some stuff
    $process->checkTimeout(); // throws an Symfony\Process\Exception\RuntimeException if timeout is reached
    usleep(1000);
}
```

Commits
-------

bf4a9b0 Round stream_select fifth argument up.
3780fdb Fix Process timeout
2013-04-07 15:42:08 +02:00
Fabien Potencier bf30a3df11 merged branch Seldaek/fix-deprecated-logs (PR #7587)
This PR was merged into the 2.2 branch.

Discussion
----------

[2.2][HttpKernel] Remove args from 5.3 stack traces to avoid filling log files

Fixes #7259 - it just makes the PHP 5.3 behavior match the one on 5.4.

Commits
-------

99256e4 [HttpKernel] Remove args from 5.3 stack traces to avoid filling log files, fixes #7259
2013-04-07 15:30:10 +02:00
Romain Neutron bf4a9b083c Round stream_select fifth argument up.
- This argument must be an integer
- An argument equal to 0 should be avoided as it consumes too much CPU time
2013-04-07 14:38:17 +02:00
Romain Neutron 3780fdb214 Fix Process timeout 2013-04-07 14:29:57 +02:00
Jordi Boggiano 99256e44a0 [HttpKernel] Remove args from 5.3 stack traces to avoid filling log files, fixes #7259 2013-04-07 13:10:22 +02:00
Troy McCabe 3c015d5fa4 Updated parsers to support namespaces (fix for ClassParser included) 2013-04-06 17:08:53 -05:00
Drak 2583c2614f [HttpFoundation][FrameworkBundle] Keep save auto_start behaviour as in 2.2 and make component values consistent with FrameworkBundle's configuration options. 2013-04-06 18:13:24 +01:00
Drak ceaf69b32e [FrameworkBundle] Use more sophisticated validation and configuration. 2013-04-06 17:24:31 +01:00
Fabien Potencier 6c114ca8c4 bumped Symfony version to 2.2.2-DEV 2013-04-06 15:17:40 +02:00
Fabien Potencier 8d0cb78fbf updated VERSION for 2.2.1 2013-04-06 12:16:33 +02:00
Fabien Potencier 9a7c56788e Merge branch '2.1' into 2.2
* 2.1:
  [HttpFoundation] Fixed copy pasted comment from FlashBag in AttributeBag
  [FrameworkBundle] fixed the discovery of the PHPUnit configuration file when using aggregate options like in -vc app/ (closes #7562)
  [WebProfilerBundle] removed next pointer class in a template
2013-04-06 12:15:43 +02:00
Fabien Potencier 3c5ee556fd updated CHANGELOG for 2.2.1 2013-04-06 12:15:29 +02:00
Drak af0a14009f [FrameworkBundle] Add configuration to allow control over session start on demand.
1. Gives user control over session start on demand mode.
2. Re-introduce flag to allow session listener to manually start session.
2013-04-06 10:34:54 +01:00
Drak 8fc2397760 [HttpFoundation] Give control over how session start on demand.
This allows control over how the session start on demand works

0: no start on demand when bags are accessed
1: start session if bags are accessed
2: no start on demand when bags are accessed but still return bag contents
2013-04-06 10:32:48 +01:00
Christian Morgan 2ea5eaadc6 Fixed phpdoc blocks to show that $uri can be passed as a string or ControllerReference (rather than just as a string) 2013-04-05 22:29:42 +01:00
Fabien Potencier 7221d25fc4 merged branch phc/2.1 (PR #7569)
This PR was merged into the 2.1 branch.

Discussion
----------

[HttpFoundation] Fixed copy pasted comment from FlashBag in AttributeBag

| Q             | A
| ------------- | ---
| Bug fix?      | [no]
| New feature?  | [no]
| BC breaks?    | [no]
| Deprecations? | [no]
| Tests pass?   | [yes] I assume : only changed a comment word
| License       | MIT

Commits
-------

815eb61 [HttpFoundation] Fixed copy pasted comment from FlashBag in AttributeBag
2013-04-05 15:22:11 +02:00
phc 815eb6144c [HttpFoundation] Fixed copy pasted comment from FlashBag in AttributeBag 2013-04-05 14:59:25 +02:00
Bernhard Schussek c2d37e6291 [Intl] Improved error messages in the build scripts 2013-04-05 12:37:05 +02:00
Bernhard Schussek 1249f0165b [Intl] Added scripts to test the compatibility of various versions of symfony/icu with the ICU version installed on the system 2013-04-05 12:06:54 +02:00
Bernhard Schussek 9dbafd7aff [Intl] Split update-stubs.php script into two scripts to function with the changed Icu component versioning 2013-04-05 10:14:38 +02:00
Bernhard Schussek e2c11cb81a [Intl] Added a check for the ICU data version to IntlTestHelper to prevent the stub class tests from failing 2013-04-05 10:14:38 +02:00
Bernhard Schussek 427d24a7a7 [Intl] Outsourced bundle reader creation to Icu component 2013-04-05 10:14:38 +02:00
Bernhard Schussek 0160fd5c74 [Intl] Moved stub data to Icu component 1.0.x 2013-04-05 10:14:38 +02:00
Bernhard Schussek dbca3b7696 [Intl] Added empty directory needed for the tests 2013-04-05 10:14:38 +02:00
Bernhard Schussek a717ce9dc2 [Intl] Removed ICU version comparisons from the tests 2013-04-05 10:14:38 +02:00
Bernhard Schussek 5d17de545b [Intl] Fixed version comparisons in the transformation rules 2013-04-05 10:14:38 +02:00
Bernhard Schussek 470927d99e [Intl] Improved build scripts 2013-04-05 10:14:38 +02:00
Bernhard Schussek aceb20d610 [Form] Improved tests to use the IntlTestHelper class 2013-04-05 10:14:38 +02:00
Bernhard Schussek 3dd75ff843 [Locale] Improved tests to use the IntlTestHelper class 2013-04-05 10:11:16 +02:00
Bernhard Schussek 03b78b0e00 [Validator] Improved tests to use the IntlTestHelper class 2013-04-05 10:11:16 +02:00
Bernhard Schussek 9d9c38996c [Intl] Simplified tests 2013-04-05 10:11:16 +02:00
Bernhard Schussek c55c4a26fe [Intl] Only the StubNumberFormatterTest requires stub data 2013-04-05 10:11:16 +02:00
Bernhard Schussek 17a480b285 [Intl] Added IntlTestHelper class for convenience 2013-04-05 10:11:16 +02:00
Bernhard Schussek 1dcdcd38cd [Locale] Fixed failing tests 2013-04-05 10:11:16 +02:00
Bernhard Schussek f6b75b9de8 [Intl] Changed composer.json to disallow future versions of the Icu component 2013-04-05 10:11:16 +02:00
Bernhard Schussek 080c88040d [Intl] Bumped the stub version to 50.1.2 2013-04-05 10:11:16 +02:00
Bernhard Schussek dd2d013d6e [Intl] Improved the bundle compilation process 2013-04-05 10:11:16 +02:00
Bernhard Schussek f47e60a6c6 [Intl] Fixed small bugs in the resource bundle transformation 2013-04-05 10:11:15 +02:00
Bernhard Schussek 467cc93447 [Intl] Fixed various problems in the resource compilation process 2013-04-05 10:11:15 +02:00
Bernhard Schussek 4a5c453266 [Intl] Moved the content of the README file to symfony/symfony-docs 2013-04-05 10:11:15 +02:00
Bernhard Schussek 9899de79ba [Intl] Updated the README 2013-04-05 10:11:15 +02:00
Bernhard Schussek bfec58a675 [Intl] Fixed flawed PHPDoc 2013-04-05 10:11:15 +02:00
Bernhard Schussek 21323ba2a2 [Intl] Updated the README file 2013-04-05 10:11:15 +02:00
Bernhard Schussek 209a9cb722 [Validator] Adapted to latest Intl changes 2013-04-05 10:11:15 +02:00
Bernhard Schussek f2a0aec49e [Form] Adapted to latest Intl changes 2013-04-05 10:11:15 +02:00
Bernhard Schussek 0f6277f809 [Locale] Adapted to latest Intl changes 2013-04-05 10:11:15 +02:00
Bernhard Schussek 2cd1be8df3 [Intl] Made the $locale parameter optional in the bundle interfaces 2013-04-05 10:11:15 +02:00