Apache, PHP, $_POST and Windows XP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ankry
    New Member
    • Dec 2009
    • 1

    Apache, PHP, $_POST and Windows XP

    When using PHP 5.3.1 + Apache 2.2.14 on Windows XP machine I encounter the following problem.
    A PHP script generates a form with method=POST. The script mentioned in the form's action parameter _sometimes_ does not receive the $_POST data (tested using print_r - it receives an empty array). And the behaviour seems to be dependent on delay between the moment the page containing the form is loaded and the moment pte sumbit button is pressed:
    - if the delay is > 15s, the problem disappears ($_POST contains the apropriate data),
    - if the delay is about 3s, the problem is fully repeatable (empty $_POST).

    PHP is used as mod_php.
    I found nothing interesting in logs (apache: POST request performed; php: undefined index in $_POST table while the problem appears, nothing otherwise)

    Any hints where to look for a solution?

    Andrzej
  • Dheeraj Joshi
    Recognized Expert Top Contributor
    • Jul 2009
    • 1129

    #2
    Can you post the code which is giving you the problem.?

    Regards
    Dheeraj Joshi

    Comment

    • voxo
      New Member
      • Dec 2009
      • 3

      #3
      I have the same problem. Its pretty annoying. It is reproducible anytime at any page using form posting data into $_POST php variable. This problem is appearing only on IE (all versions), running PHP (version 5.2 and above), Apache server on Windows machine (XP/2003/2008, Vista/7 also?).
      It has been logged in 2007 as PHP BUG 41649 (http://bugs.php.net/bug.php?id=41649), but with no resolution.
      But the problem stays up till now, Im quite shocked, noone has to do something with it. No serious answer can be found on any web, but its also interesting, that php version up to 5.2 was everything alright (tested).

      Does someone has any tip for solve this problem?

      Comment

      • code green
        Recognized Expert Top Contributor
        • Mar 2007
        • 1726

        #4
        Interesting. I use Apache, PHP, $_POST and Windows XP but not yet encountered this problem.
        But I have had new 'broken' problems before, which I have put down to the evil of Microsoft inserting deliberate bugs in IE to break open source code.

        Comment

        • voxo
          New Member
          • Dec 2009
          • 3

          #5
          SOLVED! Finally, I found where the problem lies....
          It is not in the IE, nor PHP. If you use mod_auth_sspi Apache module version 1.0.4 for NTLM authentificatio n, there it is!
          Downgrade back to v1.0.3 (search for installation package at Sourceforge) and voila :) $_POST delay for 5 seconds is gone. Finally.

          Comment

          • Dheeraj Joshi
            Recognized Expert Top Contributor
            • Jul 2009
            • 1129

            #6
            Version downgrade solved the problem.? Hmmm Interesting.

            Regards
            Dheeraj Joshi

            Comment

            • voxo
              New Member
              • Dec 2009
              • 3

              #7
              Yeah. mod_auth_sspi module is no more upgraded since 2006. Latest version working for Apache 2.0 and 2.2 is 1.0.4. But this version has the bug in cooperation with IE and PHP. So moving back to 1.0.3 is neccessary.

              Comment

              • robertjohnson
                New Member
                • Apr 2010
                • 1

                #8
                Thank you Voxo

                Thanks for the fix Voxo, great work, this has bugged me for a long time.

                Comment

                Working...