Zeta Components
  1. Zeta Components
  2. ZETACOMP-112

$_SERVER['REQUEST_TIME'] float in PHP 5.4 causing MVCTools HTTP request parser to throw an Exception

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Component/s: MvcTools
    • Labels:
      None
    • Environment:
      Mac OSX 10.6.8
      5.4.0RC4-dev / php-5.4.201112161130

      Description

      Here is the exception thrown when loading an MVCTools powered app :

      Exception: DateTime::__construct(): Failed to parse time string (@1324292391.522) at position 12 (5): Unexpected character in /usr/local/apache_php531/htdocs/zetacomponents_trunk/MvcTools/src/request_parsers/http.php on line 140
      Call Stack

      1. Time Memory Function Location
        1 0.0009 241096 {main}

        ( ) ../index.php:0
        2 0.0351 2153352 ezcMvcConfigurableDispatcher->run( ) ../index.php:8
        3 0.0363 2222984 ezcMvcHttpRequestParser->createRequest( ) ../configurable.php:219
        4 0.0368 2245464 ezcMvcHttpRequestParser->processStandardHeaders( ) ../http.php:45
        5 0.0368 2245672 ezcMvcHttpRequestParser->processDate( ) ../http.php:86
        6 0.0368 2245976 DateTime->__construct( )

      1. ZETACOMP-112.diff
        0.5 kB
        Nicolas Pastorino

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Sebastian Bergmann
            Reporter:
            Nicolas Pastorino
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development