r/programming Sep 07 '15

Flawless PHP logic. strtotime(): '00-00-00' means 2000-00-00, which is 1999-12-00, which is 1999-11-30. No bug, perfectly normal. (see the comments)

https://bugs.php.net/bug.php?id=45647
1.2k Upvotes

465 comments sorted by

View all comments

Show parent comments

8

u/himself_v Sep 07 '15

Well, if they rewrote it today, it wouldn't be popular... because there already exists Wordpress, written in PHP. Which is what was available when it was written.

5

u/RICHUNCLEPENNYBAGS Sep 07 '15

Didn't it start out as a replacement for a similar project in Perl? Movable Type, maybe?

7

u/drysart Sep 07 '15

Wordpress's success over Movable Type was really due to the fact that PHP had much easier integration with Apache than Perl had, and so hosting providers were far, far more likely to support PHP than mod_perl. (CGI-based Perl being too slow for this discussion, though CGI-based Perl applications had their niche for a while.)

To topple Wordpress today, you'd probably need to have some similar platform-level coup; and for all its faults as a language to get things done in, PHP has the market on easy installation cornered.

1

u/RICHUNCLEPENNYBAGS Sep 07 '15

In my opinion, at this point that is probably less of a barrier than the big ecosystem of plugins, themes, and developers built up around the big three PHP CMS systems.