Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2210

PHP warning in ProxyFactory when renaming proxy file

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows

      Description

      Getting a PHP Warning:

      rename(**/models/Proxies_CGAF_Model_Component_Group.php.50d2dd2c079bb9.35271255,**/models/Proxies__CG_AF_Model_Component_Group.php):

      in ProxyFactory line 194.

      I haven't more information in the warning.

      This is the moment when the ProxyFactory writes the proxy to a temporary file and then tries to rename the temp file to the correct file.

      This warning appears randomly, but mostly on pages with lots of concurrent AJAX requests. I guess this happens because several requests try to write the proxy file at the same time. I get this warning but the app works fine.

      This happens in dev environment, on a Windows machine.

      I don't know why rename generates a warning, it should just return false... The doc doesn't say anything about warnings (except for long file names, but I checked even with the full path this is around 135 characters, not 255).

        Issue Links

          Activity

          Matthieu Napoli created issue -
          Benjamin Eberlei made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Invalid [ 6 ]
          Marco Pivetta made changes -
          Issue Type Bug [ 1 ] Improvement [ 4 ]
          Marco Pivetta made changes -
          Security All [ 10000 ]
          Marco Pivetta made changes -
          Resolution Invalid [ 6 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Assignee Benjamin Eberlei [ beberlei ] Marco Pivetta [ ocramius ]
          Marco Pivetta made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Fix Version/s 2.5 [ 10522 ]
          Resolution Fixed [ 1 ]
          Marco Pivetta made changes -
          Remote Link This issue links to "Related PR #269 (Web Link)" [ 10071 ]
          Marco Pivetta made changes -
          Remote Link This issue links to "Related PR #291 (Web Link)" [ 10072 ]
          Marco Pivetta made changes -
          Link This issue relates to DCOM-186 [ DCOM-186 ]
          Marco Pivetta made changes -
          Link This issue relates to DCOM-209 [ DCOM-209 ]
          Marco Pivetta made changes -
          Link This issue relates to DDC-717 [ DDC-717 ]

            People

            • Assignee:
              Marco Pivetta
              Reporter:
              Matthieu Napoli
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: