Title: Bug with "limfifottl" queues when capacity is reached · Issue #21 · tarantool-php/queue · GitHub
Open Graph Title: Bug with "limfifottl" queues when capacity is reached · Issue #21 · tarantool-php/queue
X Title: Bug with "limfifottl" queues when capacity is reached · Issue #21 · tarantool-php/queue
Description: Create a queue queue = require 'queue' queue.create_tube('test', 'limfifottl', {capacity = 1}) Next add records: $queue = new Queue($client, 'test'); $result = $queue->put(45); var_dump($result); $result = $queue->put(45); var_dump($resu...
Open Graph Description: Create a queue queue = require 'queue' queue.create_tube('test', 'limfifottl', {capacity = 1}) Next add records: $queue = new Queue($client, 'test'); $result = $queue->put(45); var_dump($result); $...
X Description: Create a queue queue = require 'queue' queue.create_tube('test', 'limfifottl', {capacity = 1}) Next add records: $queue = new Queue($client, 'test'); $result = $queu...
Opengraph URL: https://github.com/tarantool-php/queue/issues/21
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug with \"limfifottl\" queues when capacity is reached","articleBody":"Create a queue\r\n```lua\r\nqueue = require 'queue'\r\nqueue.create_tube('test', 'limfifottl', {capacity = 1})\r\n```\r\n\r\nNext add records:\r\n```php\r\n$queue = new Queue($client, 'test');\r\n$result = $queue-\u003eput(45);\r\nvar_dump($result);\r\n$result = $queue-\u003eput(45);\r\nvar_dump($result);\r\n```\r\n\r\nOutput:\r\n```cmd\r\nobject(Tarantool\\Queue\\Task)#26 (3) {\r\n [\"id\":\"Tarantool\\Queue\\Task\":private]=\u003e\r\n int(0)\r\n [\"state\":\"Tarantool\\Queue\\Task\":private]=\u003e\r\n string(1) \"r\"\r\n [\"data\":\"Tarantool\\Queue\\Task\":private]=\u003e\r\n int(45)\r\n}\r\nPHP Fatal error: Uncaught TypeError: Argument 1 passed to Tarantool\\Queue\\Task::fromTuple() must be of the type array, null given, called in /vendor/tarantool/queue/src/Queue.php on line 45 and defined in /vendor/tarantool/queue/src/Task.php:34\r\nStack trace:\r\n#0 /vendor/tarantool/queue/src/Queue.php(45): Tarantool\\Queue\\Task::fromTuple(NULL)\r\n#1 /test.php(60): Tarantool\\Queue\\Queue-\u003eput(45)\r\n#2 {main}\r\n thrown in /vendor/tarantool/queue/src/Task.php on line 34\r\n```\r\n\r\nExpected output:\r\n```cmd\r\nobject(Tarantool\\Queue\\Task)#26 (3) {\r\n [\"id\":\"Tarantool\\Queue\\Task\":private]=\u003e\r\n int(0)\r\n [\"state\":\"Tarantool\\Queue\\Task\":private]=\u003e\r\n string(1) \"r\"\r\n [\"data\":\"Tarantool\\Queue\\Task\":private]=\u003e\r\n int(45)\r\n}\r\nNULL\r\n```","author":{"url":"https://github.com/PavelFil","@type":"Person","name":"PavelFil"},"datePublished":"2022-10-20T07:17:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/21/queue/issues/21"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:efad5f35-39aa-d8b9-44c2-d6830a9ec7f1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF38:1FD20B:27B73D1:32F34F4:6991C3BC |
| html-safe-nonce | 46ac5bff575b63ecaf5ac3cecf77ae2ce89001f340a7bf415cac5a9c05b734a5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjM4OjFGRDIwQjoyN0I3M0QxOjMyRjM0RjQ6Njk5MUMzQkMiLCJ2aXNpdG9yX2lkIjoiMTE2Nzk3NjM1NDU5Mjk2NTU2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0794cec3e9f43aadd0139b4da9cbf67c9e9ac69c4f76bbd1163d32d859c17b9d |
| hovercard-subject-tag | issue:1416098977 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/tarantool-php/queue/21/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4c9537a36732984b93c6a552f244bfb000ab16526f95fa212698a9583f5439df/tarantool-php/queue/issues/21 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4c9537a36732984b93c6a552f244bfb000ab16526f95fa212698a9583f5439df/tarantool-php/queue/issues/21 |
| og:image:alt | Create a queue queue = require 'queue' queue.create_tube('test', 'limfifottl', {capacity = 1}) Next add records: $queue = new Queue($client, 'test'); $result = $queue->put(45); var_dump($result); $... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PavelFil |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/tarantool-php/queue git https://github.com/tarantool-php/queue.git |
| octolytics-dimension-user_id | 12213718 |
| octolytics-dimension-user_login | tarantool-php |
| octolytics-dimension-repository_id | 37842031 |
| octolytics-dimension-repository_nwo | tarantool-php/queue |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 37842031 |
| octolytics-dimension-repository_network_root_nwo | tarantool-php/queue |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width