GPXIN-15: Creating default object from empty value



Issue Information

Issue Type: Bug
 
Priority: Major
Status: Closed

Reported By:
Ben Tasker
Assigned To:
Ben Tasker
Project: PHP GPXIngest (GPXIN)
Resolution: Fixed (2015-04-22 07:50:54)
Affects Version: 1.02,
Target version: 1.02,

Created: 2015-01-13 10:09:20
Time Spent Working


Description
There are a number of instances where a property is being assigned to an object that hasn't been created yet, leading to a warning like the following

Warning: Creating default object from empty value in /home/ben/tmp/PHP-GPX-Ingest/GPXIngest.class.php on line 176


The affected lines are

- 176
- 325
- 600
- 603
- 634

There may, potentially, be others, but these are routinely called during ingest()


Toggle State Changes

Activity



Repo: PHP-GPX-Ingest
Commit: bfafdc272ed980060e1cae7a987b6f27ea176f98
Author: Ben Tasker <github@<Domain Hidden>>

Date: Tue Jan 13 10:10:13 2015 +0000
Commit Message: Ensured objects are defined before properties assigned. See GPXIN-15



Modified (-)(+)
-------
GPXIngest.class.php




Webhook User-Agent

GitHub-Hookshot/2f00e0f


View Commit


Repo: PHP-GPX-Ingest
Commit: b1d06f6f07c7e572a2bde9ab716894d6f36eee7a
Author: Ben Tasker <github@<Domain Hidden>>

Date: Tue Jan 13 20:00:17 2015 +0000
Commit Message: Eliminated another case of undefined object syndrome. See GPXIN-15



Modified (-)(+)
-------
GPXIngest.class.php




Webhook User-Agent

GitHub-Hookshot/2f00e0f


View Commit

Closing as fixed - not seen any more instances of this since the fixes were applied.
btasker changed status from 'Open' to 'Resolved'
btasker added 'Fixed' to resolution
btasker changed status from 'Resolved' to 'Closed'