Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7443109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T11:16:50+00:00 2026-05-29T11:16:50+00:00

I have three servers, doing the following on all three servers: echo strtotime(‘2099-12-31’); echo

  • 0

I have three servers, doing the following on all three servers:

echo strtotime('2099-12-31');
echo strtotime(date('Y-m-d'));

gets me:

Server #1: (php 5.3.8, 64bit)

4102376400
1328418000

Server 2: (php 5.3.2, 32bit)

**[nothing]**
1328418000

Server #3: (php 5.3.2 – 64bit I thought it might be a php version issue)

4102376400
1328418000

What would cause strtotime to fail on one of the servers but not the others? All three have the same Default timezone and date.timezone settings in php.ini (not sure if that would have an effect or not). I also turned on errors and I’m not seeing anything.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T11:16:50+00:00Added an answer on May 29, 2026 at 11:16 am

    Probably it is a 32-bit issue. It works just fine on my 64-Bit Server, but my 32-bit Ubuntu returns false on strtotime('2099-12-31')

    For further information see this note in the manual (highlighting by me):

    The valid range of a timestamp is typically from Fri, 13 Dec 1901 20:45:54 UTC to Tue, 19 Jan 2038 03:14:07 UTC. (These are the dates that correspond to the minimum and maximum values for a 32-bit signed integer.) Additionally, not all platforms support negative timestamps, therefore your date range may be limited to no earlier than the Unix epoch. This means that e.g. dates prior to Jan 1, 1970 will not work on Windows, some Linux distributions, and a few other operating systems. PHP 5.1.0 and newer versions overcome this limitation though.

    For 64-bit versions of PHP, the valid range of a timestamp is effectively infinite, as 64 bits can represent approximately 293 billion years in either direction.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So, I have three server, and the idea was to keep all media (images,
I have a service monitor app that monitors the status of three other servers
I have three Windows Server 2003 with 2 GB RAM. Server1 tomcat 5.5.25 jvm
I have three solutions which build two clients and a server, and share many
So we have three FLEX controls hosted within a JBOSS server instance, and an
I have a three tier system, SQL Server backend, hand written data access layer,
I have a three-tier application which is installed in corporate environments. With every server
I have installed SQL Server 2005 three times now on the same box. I
I have a MySql Master server replicating to three Slaves. A legacy website is
I have a table in SQL Server 2005 which has three columns: id (int),

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.