Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Process] Add a version check to the code added in #7102 #7106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Seldaek opened this issue Feb 18, 2013 · 9 comments
Closed

[Process] Add a version check to the code added in #7102 #7106

Seldaek opened this issue Feb 18, 2013 · 9 comments
Labels
Enhancement Good first issue Ideal for your first contribution! (some Symfony experience may be required) Process

Comments

@Seldaek
Copy link
Member

Seldaek commented Feb 18, 2013

When PHP 5.5 is released, and if the code still seems to work fine, a version check could /should be added to the block added in #7102 so that it's only executed on 5.3/5.4 since these are the buggy versions.

@Seldaek
Copy link
Member Author

Seldaek commented Feb 18, 2013

The fix is going to be released in: 5.4.12 / 5.3.22 / 5.5.0, lower versions of 5.4 and 5.3 are affected and need this workaround.

@materazu
Copy link

materazu commented Mar 3, 2013

@Seldaek ok for you like that ?

@Seldaek
Copy link
Member Author

Seldaek commented Mar 3, 2013

Looks good yes.

@Seldaek
Copy link
Member Author

Seldaek commented Mar 10, 2013

@pierrejoye it seems that PHP builds with --enable-maintainer-zts are also affected by this on linux, and even on 5.4.12 it still is present. @loicfrering just helped debug this on travis (where they added this configure flag recently). Seems like https://bugs.php.net/bug.php?id=50524 is related.

Is there an easy way to detect ZTS builds? That way we could enable this fix for ZTS builds only. Or maybe we should revert to always doing:

if (null === $this->cwd) {
    $this->cwd = getcwd() ?: null;
}

@pierrejoye
Copy link

yes, there is a constant for that, ZEND_THREAD_SAFE

On Sun, Mar 10, 2013 at 6:58 PM, Jordi Boggiano [email protected]:

@pierrejoye https://github.com/PierreJoye it seems that PHP builds with
--enable-maintainer-zts are also affected by this on linux, and even on
5.4.12 it still is present. @loicfrering https://github.com/loicfreringjust helped debug this on travis (where they added this configure flag
recently). Seems like https://bugs.php.net/bug.php?id=50524 is related.

Is there an easy way to detect ZTS builds? That way we could enable this
fix for ZTS builds only. Or maybe we should revert to always doing:

if (null === $this->cwd) {
$this->cwd = getcwd() ?: null;
}


Reply to this email directly or view it on GitHubhttps://github.com//issues/7106#issuecomment-14685623
.

Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

@Seldaek
Copy link
Member Author

Seldaek commented Mar 11, 2013

@lizjulien could you update your PR to enable this workaround for any php that has ZEND_THREAD_SAFE for now? Because it seems it's still not fixed in 5.4.12 on linux at least (haven't checked windows).

@materazu
Copy link

@Seldaek Sure, i'll do that. But just to be sure, we remove all check for version and we replace it by a constant check?

@Seldaek
Copy link
Member Author

Seldaek commented Mar 11, 2013

I think it's the only option until we can test for sure that it is fixed in a given version.

@materazu
Copy link

ok

materazu pushed a commit to materazu/symfony that referenced this issue Mar 20, 2013
fabpot pushed a commit that referenced this issue Mar 23, 2013
fabpot added a commit that referenced this issue Mar 23, 2013
This PR was submitted for the master branch but it was merged into the 2.1 branch instead (closes #7248).

Discussion
----------

#7106 - check php version for getcwd()

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

Commits
-------

11d3855  #7106 - fix for ZTS builds
@fabpot fabpot closed this as completed Mar 23, 2013
fabpot added a commit that referenced this issue Mar 23, 2013
* 2.1:
  #7106 - fix for ZTS builds
  Added '@@' escaping strategy for YamlFileLoader and YamlDumper
  [Yaml] fixed bugs with folded scalar parsing
  [Form] made DefaultCsrfProvider using session_status() when available
  Added unit tests to Dumper
  Update .travis.yml (closes #7355)
  [HttpFoudantion] fixed Request::getPreferredLanguage()
  Revert "merged branch jfsimon/issue-6928 (PR #7378)"
  Routing issue with installation in a sub-directory ref: #7129

Conflicts:
	.travis.yml
	src/Symfony/Bundle/FrameworkBundle/Routing/Router.php
	src/Symfony/Component/Routing/RouteCollection.php
fabpot added a commit that referenced this issue Mar 23, 2013
* 2.2:
  #7106 - fix for ZTS builds
  Added '@@' escaping strategy for YamlFileLoader and YamlDumper
  [Yaml] fixed bugs with folded scalar parsing
  [Form] made DefaultCsrfProvider using session_status() when available
  Added unit tests to Dumper
  Update .travis.yml (closes #7355)
  [HttpFoudantion] fixed Request::getPreferredLanguage()
  Revert "merged branch jfsimon/issue-6928 (PR #7378)"
  Routing issue with installation in a sub-directory ref: #7129
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Good first issue Ideal for your first contribution! (some Symfony experience may be required) Process
Projects
None yet
Development

No branches or pull requests

4 participants