Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feeds
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
feeds
Commits
f57e9563
Commit
f57e9563
authored
15 years ago
by
Alex Barth
Browse files
Options
Downloads
Patches
Plain Diff
#736684 Souvent22, Mixologic: FeedsDateTime & Batch DateTime causes core dumps.
parent
9c174fc3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.txt
+2
-0
2 additions, 0 deletions
CHANGELOG.txt
plugins/FeedsParser.inc
+22
-0
22 additions, 0 deletions
plugins/FeedsParser.inc
with
24 additions
and
0 deletions
CHANGELOG.txt
+
2
−
0
View file @
f57e9563
...
@@ -4,6 +4,8 @@
...
@@ -4,6 +4,8 @@
Feeds 6.x 1.0 xxxxx xx, 2010-xx-xx
Feeds 6.x 1.0 xxxxx xx, 2010-xx-xx
----------------------------------
----------------------------------
- #736684 Souvent22, Mixologic: FeedsDateTime & Batch DateTime causes core
dumps.
- #750168 jtr: _parser_common_syndication_title does not strip html tags before
- #750168 jtr: _parser_common_syndication_title does not strip html tags before
constructing a title.
constructing a title.
- #648080 pvhee: FeedsNodeProcessor - static caching of mapping targets makes
- #648080 pvhee: FeedsNodeProcessor - static caching of mapping targets makes
...
...
This diff is collapsed.
Click to expand it.
plugins/FeedsParser.inc
+
22
−
0
View file @
f57e9563
...
@@ -346,6 +346,28 @@ class FeedsDateTimeElement extends FeedsElement {
...
@@ -346,6 +346,28 @@ class FeedsDateTimeElement extends FeedsElement {
class
FeedsDateTime
extends
DateTime
{
class
FeedsDateTime
extends
DateTime
{
public
$granularity
=
array
();
public
$granularity
=
array
();
protected
static
$allgranularity
=
array
(
'year'
,
'month'
,
'day'
,
'hour'
,
'minute'
,
'second'
,
'zone'
);
protected
static
$allgranularity
=
array
(
'year'
,
'month'
,
'day'
,
'hour'
,
'minute'
,
'second'
,
'zone'
);
private
$_serialized_time
;
private
$_serialized_timezone
;
/**
* Helper function to prepare the object during serialization.
*
* We are extending a core class and core classes cannot be serialized.
*
* Ref: http://bugs.php.net/41334, http://bugs.php.net/39821
*/
public
function
__sleep
(){
$this
->
_serialized_time
=
$this
->
format
(
'c'
);
$this
->
_serialized_timezone
=
$this
->
getTimezone
()
->
getName
();
return
array
(
'_serialized_time'
,
'_serialized_timezone'
);
}
/**
* Upon unserializing, we must re-build ourselves using local variables.
*/
public
function
__wakeup
()
{
$this
->
__construct
(
$this
->
_serialized_time
,
new
DateTimeZone
(
$this
->
_serialized_timezone
));
}
/**
/**
* Overridden constructor.
* Overridden constructor.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment