Announcement

Collapse
No announcement yet.

2.2.9 & Birthdays

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    The problem is that POSIX requires mktime() to return -1 on error. Many glibc implementations ignored this and returned -1 for 1 second *before* the epoch. Starting with RedHat 7.3 mktime() will return -1 for any date before the epoch (yes, this broke a lot of things).
    Interested in Linux?
    Have a question?
    http://www.linuxquestions.org

    Comment


    • #17
      Originally posted by customcpu
      The problem is that POSIX requires mktime() to return -1 on error. Many glibc implementations ignored this and returned -1 for 1 second *before* the epoch. Starting with RedHat 7.3 mktime() will return -1 for any date before the epoch (yes, this broke a lot of things).
      Ah.. I see. Thanks for the explanation.

      So that means people have been taking advantage of broken operating systems in their coding. Now Red Hat have fixed it, the **** hits the fan.

      PS. Nice forums. Another one to add to my bookmarks.
      Last edited by fastforward; Mon 2nd Dec '02, 2:48pm.
      http://britishexpats.com/ - British expatriate community

      Comment


      • #18
        Here's the latest from VO:

        From the description of the issue, it is most likely a bug with the version of the libc shipped with RedHat 7.3. If it were some other component it might be a different matter, but since changing the version of the libc can be dangerous we should not attempt to resolve the issue by upgrading libc. The best solution for now is the change to member.php recommended in the thread. Were you able to resolve the issue this way, or are you in need of assistance?

        -------------
        Regards,
        Craig, Tier II Support

        Robert

        Comment


        • #19
          Originally posted by fastforward
          Does that fix that was published work for all servers regardless of this 'negative' date thing? If so, why wasn't it changed in the code for 2.2.9?
          I have no idea what this fix does for servers not having this problem. One of the Developers will need to respond to this.
          Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
          Change CKEditor Colors to Match Style (for 4.1.4 and above)

          Steve Machol Photography


          Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


          Comment


          • #20
            Originally posted by Steve Machol
            And the fix has been reported for just as long.


            This really ought to be sticky-fied. It is being asked quite often.

            Comment


            • #21
              Bug or not, the mktime function for dates <= 1969 may not return a usable value in some configurations. And according to the PHP documentation, mktime for years <= 1969 in Unix, the function is defined to return -1.

              So perhaps the developers should rethink using a birthday implementation that is supported by the PHP documentation?

              Nevertheless, I'll gladly run a patched system for now and known that vB 3 will eventually support the defined specs.
              Last edited by kippesp; Tue 3rd Dec '02, 9:50pm.
              Cygwin - all the tools to make Windows complete (cvs, vim, diff, grep, gcc, ssh, ...)

              Comment

              Related Topics

              Collapse

              Working...
              X