Fix audit log for flat file database #257

Merged
tslocum merged 1 commits from averageByte/tinyib:fix/flatfile-audit-log into master 2022-06-24 05:29:09 +00:00
Contributor

PHP runs out of memory due to flat file's audit log implementation, and manage mode actions break.

Warning: Undefined array key 1 in /tmp/tinyib/inc/database/flatfile.php on line 207

Warning: Undefined array key 2 in /tmp/tinyib/inc/database/flatfile.php on line 208

Warning: Undefined array key 3 in /tmp/tinyib/inc/database/flatfile.php on line 209

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65011720 bytes) in /tmp/tinyib/inc/database/flatfile/flatfile.php on line 344
PHP runs out of memory due to flat file's audit log implementation, and manage mode actions break. ``` Warning: Undefined array key 1 in /tmp/tinyib/inc/database/flatfile.php on line 207 Warning: Undefined array key 2 in /tmp/tinyib/inc/database/flatfile.php on line 208 Warning: Undefined array key 3 in /tmp/tinyib/inc/database/flatfile.php on line 209 Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65011720 bytes) in /tmp/tinyib/inc/database/flatfile/flatfile.php on line 344 ```
Author
Contributor

Closes #245

Closes #245
Owner

Nice catch. Please change $log['id'] to $log[LOG_ID], and then I will merge this. Thanks.

Nice catch. Please change `$log['id']` to `$log[LOG_ID]`, and then I will merge this. Thanks.
averageByte force-pushed fix/flatfile-audit-log from 771677564b to f1e527e77e 2022-06-23 05:14:59 +00:00 Compare
averageByte force-pushed fix/flatfile-audit-log from f1e527e77e to c5af7a0ef7 2022-06-23 05:15:45 +00:00 Compare
Author
Contributor

Done.

Done.
tslocum merged commit 648a4fe752 into master 2022-06-24 05:29:09 +00:00
averageByte deleted branch fix/flatfile-audit-log 2022-06-26 13:29:30 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tslocum/tinyib#257
No description provided.