Closed (fixed)
Project:
Date Popup Authored
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Jan 2011 at 23:58 UTC
Updated:
17 Jan 2011 at 02:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
mark trappJust tested with Drupal core's latest HEAD and Date's latest HEAD and not seeing the problem. Additionally, all tests pass. There's no reason why
DateObject::createFromFormatwould stop working:DateObjectextendsDateTime.So I have a few questions to see if we can resolve this:
Comment #2
pillarsdotnet commentedYou're right; it wasn't a Date API change. I didn't realize that createFromFormat was a DateTime method, so when I grepped for it and came up empty, I assumed that it wasn't supported anymore. Knee-jerk reaction from running bleeding-edge software.
(looking...)
Hmm... I've also been getting sporadic "Call to undefined function user_access()" so it may be an out-of-memory issue. Dunno.
You might want to mention in your REQUIREMENTS section that your module requires PHP 5.3.0 or later. I know it's recommended for Drupal 7, but it isn't required just yet.
Comment #3
mark trappAh, I didn't catch that
DateTime::createFromFormatwas PHP >= 5.3.0. That's reason enough for me to implement the change from your first patch: does the same thing, all tests pass, and PHP 5.2 support should be back. Patch in OP is committed.