Fix audit log for flat file database #257

Merged
averageByte merged 0 commits from refs/pull/257/head into master 2022-06-24 07:29:09 +02:00
averageByte commented 2022-06-22 16:21:29 +02:00 (Migrated from code.rocket9labs.com)

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 ```
averageByte commented 2022-06-22 17:16:50 +02:00 (Migrated from code.rocket9labs.com)

Closes #245

Closes #245
tslocum commented 2022-06-23 00:37:51 +02:00 (Migrated from code.rocket9labs.com)

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 commented 2022-06-23 07:16:34 +02:00 (Migrated from code.rocket9labs.com)

Done.

Done.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
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.