Change
Remove global state
Issue description
Currently Topincs assumes ownership of the whole PHP process for historic reasons, each PHP process works with a designated store and user. The store might be switched, in which case the state is wiped. It would be neat to access arbitrary many stores in one PHP process. With the advent of readonly properties this can be changed and made more secure.
Developer comments
This was achieved 100\%. Only Topincs itself is still used statically. All other classes lost their static members and methods. It was mainly a matter of replacing %::% by %->% and removing all the %clear_cache% functions that accumulated over 20 years. The runtime impact is not noticable, which is a relief, despite the increase in objects and members. Many expressions are now longer, since global state allows absolute reference independent of the location in the code, where as local state requires relative reference depending on the location in the code. So there is more of "this".
What was gained? On the surface Topincs behaves 100% the same, but one PHP process can now use any number of Topincs stores to read/write/exchange data by using the full power of the engine (a partial, after-access in-memory representation of the data).
|
Work sessions86
Start |
2024-11-11T07:00:00
|
End |
2024-11-11T13:24:41
|
Participant |
Robert Cerny
|
Start |
2024-11-11T13:53:04
|
End |
2024-11-11T18:30:23
|
Participant |
Robert Cerny
|
Start |
2024-11-12T06:00:00
|
End |
2024-11-12T11:39:51
|
Participant |
Robert Cerny
|
Start |
2024-11-12T14:22:32
|
End |
2024-11-12T18:11:39
|
Participant |
Robert Cerny
|
Start |
2024-11-12T19:26:23
|
End |
2024-11-12T21:00:00
|
Participant |
Robert Cerny
|
Start |
2024-11-13T07:17:46
|
End |
2024-11-13T10:25:55
|
Participant |
Robert Cerny
|
Start |
2024-11-13T12:49:33
|
End |
2024-11-13T15:56:54
|
Participant |
Robert Cerny
|
Start |
2024-11-14T07:03:35
|
End |
2024-11-14T11:00:00
|
Participant |
Robert Cerny
|
Start |
2024-11-14T12:19:33
|
End |
2024-11-14T13:03:33
|
Participant |
Robert Cerny
|
Start |
2024-11-14T14:00:00
|
End |
2024-11-14T16:42:32
|
Participant |
Robert Cerny
|
Start |
2024-11-14T19:21:14
|
End |
2024-11-14T20:21:33
|
Participant |
Robert Cerny
|
Start |
2024-11-15T06:17:36
|
End |
2024-11-15T10:37:54
|
Participant |
Robert Cerny
|
Start |
2024-11-15T13:19:17
|
End |
2024-11-15T16:09:21
|
Participant |
Robert Cerny
|
Start |
2024-11-16T07:35:48
|
End |
2024-11-16T13:20:31
|
Participant |
Robert Cerny
|
Start |
2024-11-16T16:10:14
|
End |
2024-11-16T19:10:24
|
Participant |
Robert Cerny
|
Start |
2024-11-16T22:00:00
|
End |
2024-11-16T23:25:46
|
Participant |
Robert Cerny
|
Start |
2024-11-17T06:00:00
|
End |
2024-11-17T12:43:31
|
Participant |
Robert Cerny
|
Start |
2024-11-17T19:14:01
|
End |
2024-11-17T21:21:30
|
Participant |
Robert Cerny
|
Start |
2024-11-18T07:21:52
|
End |
2024-11-18T09:19:15
|
Participant |
Robert Cerny
|
Start |
2024-11-18T17:53:53
|
End |
2024-11-18T19:54:02
|
Participant |
Robert Cerny
|
Start |
2024-11-19T07:07:14
|
End |
2024-11-19T08:31:30
|
Participant |
Robert Cerny
|
Start |
2024-11-19T09:00:00
|
End |
2024-11-19T12:03:04
|
Participant |
Robert Cerny
|
Start |
2024-11-19T12:36:12
|
End |
2024-11-19T14:48:13
|
Participant |
Robert Cerny
|
Start |
2024-11-20T01:29:23
|
End |
2024-11-20T01:52:56
|
Participant |
Robert Cerny
|
Start |
2024-11-21T16:00:00
|
End |
2024-11-21T17:45:28
|
Participant |
Robert Cerny
|
Start |
2024-11-22T08:00:00
|
End |
2024-11-22T11:56:11
|
Participant |
Robert Cerny
|
Start |
2024-11-22T14:32:52
|
End |
2024-11-22T18:06:46
|
Participant |
Robert Cerny
|
Start |
2024-11-23T08:10:22
|
End |
2024-11-23T13:46:43
|
Participant |
Robert Cerny
|
Start |
2024-11-23T17:00:00
|
End |
2024-11-23T18:16:00
|
Participant |
Robert Cerny
|
Start |
2024-11-24T08:00:00
|
End |
2024-11-24T09:21:14
|
Participant |
Robert Cerny
|
Start |
2024-11-24T10:18:44
|
End |
2024-11-24T17:00:00
|
Participant |
Robert Cerny
|
Start |
2024-11-25T08:00:00
|
End |
2024-11-25T11:36:12
|
Participant |
Robert Cerny
|
Start |
2024-11-25T14:56:05
|
End |
2024-11-25T17:56:16
|
Participant |
Robert Cerny
|
Start |
2024-11-26T06:31:34
|
End |
2024-11-26T08:46:38
|
Participant |
Robert Cerny
|
Start |
2024-11-27T05:44:41
|
End |
2024-11-27T06:58:23
|
Participant |
Robert Cerny
|
Start |
2024-11-28T07:15:00
|
End |
2024-11-28T09:12:16
|
Participant |
Robert Cerny
|
Start |
2024-12-08T08:00:00
|
End |
2024-12-08T10:12:10
|
Participant |
Robert Cerny
|
Start |
2024-12-10T01:00:00
|
End |
2024-12-10T04:13:13
|
Participant |
Robert Cerny
|
Start |
2024-12-12T22:30:00
|
End |
2024-12-12T23:13:21
|
Participant |
Robert Cerny
|
Start |
2024-12-13T07:15:00
|
End |
2024-12-13T11:12:29
|
Participant |
Robert Cerny
|
Start |
2024-12-15T18:04:13
|
End |
2024-12-15T19:14:43
|
Participant |
Robert Cerny
|
Start |
2024-12-28T09:00:00
|
End |
2024-12-28T19:00:42
|
Participant |
Robert Cerny
|
Start |
2024-12-29T09:00:00
|
End |
2024-12-29T13:50:10
|
Participant |
Robert Cerny
|
Start |
2024-12-29T14:54:02
|
End |
2024-12-29T16:55:17
|
Participant |
Robert Cerny
|
Start |
2024-12-30T08:33:38
|
End |
2024-12-30T14:58:21
|
Participant |
Robert Cerny
|
Start |
2024-12-30T21:00:00
|
End |
2024-12-30T23:48:20
|
Participant |
Robert Cerny
|
Start |
2024-12-31T09:00:00
|
End |
2024-12-31T12:18:27
|
Participant |
Robert Cerny
|
Start |
2025-01-01T21:04:13
|
End |
2025-01-02T01:21:02
|
Participant |
Robert Cerny
|
Start |
2025-01-02T09:00:14
|
End |
2025-01-02T10:28:25
|
Participant |
Robert Cerny
|
Start |
2025-01-02T11:10:00
|
End |
2025-01-02T12:37:50
|
Participant |
Robert Cerny
|
Start |
2025-01-02T13:00:00
|
End |
2025-01-02T17:37:51
|
Participant |
Robert Cerny
|
Start |
2025-01-02T23:00:00
|
End |
2025-01-03T01:07:40
|
Participant |
Robert Cerny
|
Start |
2025-01-03T08:09:35
|
End |
2025-01-03T09:47:19
|
Participant |
Robert Cerny
|
Start |
2025-01-03T13:00:00
|
End |
2025-01-03T17:07:41
|
Participant |
Robert Cerny
|
Start |
2025-01-03T22:19:23
|
End |
2025-01-03T23:19:27
|
Participant |
Robert Cerny
|
Start |
2025-01-04T06:50:00
|
End |
2025-01-04T08:34:31
|
Participant |
Robert Cerny
|
Start |
2025-01-04T09:06:08
|
End |
2025-01-04T10:42:32
|
Participant |
Robert Cerny
|
Start |
2025-01-04T18:00:00
|
End |
2025-01-04T19:57:44
|
Participant |
Robert Cerny
|
Start |
2025-01-05T07:00:00
|
End |
2025-01-05T09:00:16
|
Participant |
Robert Cerny
|
Start |
2025-01-05T10:36:18
|
End |
2025-01-05T17:47:47
|
Participant |
Robert Cerny
|
Start |
2025-01-05T20:00:00
|
End |
2025-01-05T22:02:56
|
Participant |
Robert Cerny
|
Start |
2025-01-06T11:53:39
|
End |
2025-01-06T16:46:45
|
Participant |
Robert Cerny
|
Start |
2025-01-07T08:35:17
|
End |
2025-01-07T10:34:21
|
Participant |
Robert Cerny
|
Start |
2025-01-08T05:00:00
|
End |
2025-01-08T07:17:19
|
Participant |
Robert Cerny
|
Start |
2025-01-14T15:05:13
|
End |
2025-01-14T16:25:59
|
Participant |
Robert Cerny
|
Start |
2025-01-15T08:30:00
|
End |
2025-01-15T10:55:45
|
Participant |
Robert Cerny
|
Start |
2025-01-15T13:30:00
|
End |
2025-01-15T17:44:59
|
Participant |
Robert Cerny
|
Start |
2025-01-16T07:56:21
|
End |
2025-01-16T10:59:45
|
Participant |
Robert Cerny
|
Start |
2025-01-17T07:59:53
|
End |
2025-01-17T09:07:21
|
Participant |
Robert Cerny
|
Start |
2025-01-18T10:56:44
|
End |
2025-01-18T12:42:20
|
Participant |
Robert Cerny
|
Start |
2025-01-19T15:00:00
|
End |
2025-01-19T18:45:02
|
Participant |
Robert Cerny
|
Start |
2025-01-20T07:30:00
|
End |
2025-01-20T09:30:43
|
Participant |
Robert Cerny
|
Start |
2025-01-22T08:05:29
|
End |
2025-01-22T09:13:10
|
Participant |
Robert Cerny
|
Start |
2025-02-12T08:00:00
|
End |
2025-02-12T12:03:35
|
Participant |
Robert Cerny
|
Start |
2025-02-12T13:00:00
|
End |
2025-02-12T14:33:12
|
Participant |
Robert Cerny
|
Start |
2025-02-12T16:00:00
|
End |
2025-02-12T17:41:19
|
Participant |
Robert Cerny
|
Start |
2025-02-13T08:00:00
|
End |
2025-02-13T16:07:58
|
Participant |
Robert Cerny
|
Start |
2025-02-14T07:30:00
|
End |
2025-02-14T09:50:22
|
Participant |
Robert Cerny
|
Start |
2025-02-16T09:00:00
|
End |
2025-02-16T17:14:59
|
Participant |
Robert Cerny
|
Start |
2025-02-18T08:02:16
|
End |
2025-02-18T16:02:33
|
Participant |
Robert Cerny
|
Start |
2025-02-19T08:02:40
|
End |
2025-02-19T10:32:13
|
Participant |
Robert Cerny
|
Start |
2025-02-19T16:00:00
|
End |
2025-02-19T17:06:19
|
Participant |
Robert Cerny
|
Start |
2025-02-20T07:39:18
|
End |
2025-02-20T12:59:38
|
Participant |
Robert Cerny
|
Start |
2025-02-21T09:00:00
|
End |
2025-02-21T15:09:03
|
Participant |
Robert Cerny
|
Start |
2025-02-23T10:00:00
|
End |
2025-02-23T12:36:19
|
Participant |
Robert Cerny
|
Start |
2025-02-22T11:00:00
|
End |
2025-02-22T16:36:30
|
Participant |
Robert Cerny
|
|
We are sorry
This page cannot be displayed in your browser. Use Firefox, Opera, Safari, or Chrome instead.