dshafik
Repos
143
Followers
216
Following
12

A shim for ext/mysql in PHP 7+

374
87

A polyglot repo of examples for using secure passwords (typically bcrypt)

39
11

Build PHP releases with ease using Docker

19
4

The PHP Interpreter

C
34369
7008

Guzzle, an extensible PHP HTTP client

22105
2282

Events

Update addon-scrypted

Created at 2 weeks ago

Add installation instructions to README

Created at 2 weeks ago

Update Scrypted to v0.2.5.lite

Created at 2 weeks ago
dshafik create tag v0.1.16.lite
Created at 2 weeks ago
dshafik delete tag v0.1.16.lite
Created at 2 weeks ago

Update README

Update Scrypted to v0.2.5.lite

Created at 2 weeks ago

Update Scrypted to v0.2.5.lite

Created at 2 weeks ago

Update README

Update Scrypted to v0.2.5.lite

Created at 2 weeks ago

Update Scrypted to v0.2.5.lite

Created at 2 weeks ago

Update Scrypted to v0.2.5.lite

Created at 2 weeks ago
dshafik create tag v0.2.5.lite
Created at 2 weeks ago

Update README

Update to v0.2.5.lite

Created at 2 weeks ago
dshafik create tag v0.1.16.lite
Created at 1 month ago

Add Scrypted add-on

Created at 1 month ago

Initial commit of repo

Add Scrypted add-on

Created at 1 month ago

Initial commit of Scrypted add-on

Created at 1 month ago
dshafik create branch main
Created at 1 month ago
create repository
dshafik create repository
Created at 1 month ago
dshafik create branch main
Created at 1 month ago
create repository
dshafik create repository
Created at 1 month ago

Initial commit of addon-scrypted

Created at 1 month ago
create branch
dshafik create branch main
Created at 1 month ago
create repository
dshafik create repository
Created at 1 month ago
Support encryption, avoid double __unserialize call

@marickvantuil Updated the PR to avoid the unserialize() in all places

Created at 1 month ago

Support encryption, avoid double __unserialize call

Laravel uses the magic method __unserialize() in the SerializesModels trait, which does a bunch of work to rehydrate models attached to jobs. This gets called every time the job is unserialized. The addition of an unserialize() call in the constructor to get the queue property causes it to run twice because of the original call to unserialize() is in \Illuminate\Queue\CallQueuedHandler->getCommand().

CallQueuedHandler->getCommand() also implements support for encrypted command payloads.

This change brings over the encryption support logic from CallQueuedHandler->getCommand() and passed ['allowed_classes' => false] to the unserialize() call. This will make it not hydrate to the original job object, but instead to an instance of __PHP_Incomplete_Class avoiding the unnecessary call to __unserialize() with this unserialize() call. We then cast to an (array) to access the queue property without issue.

Created at 1 month ago

Support encryption, avoid double __unserialize call

Laravel uses the magic method __unserialize() in the SerializesModels trait, which does a bunch of work to rehydrate models attached to jobs. This gets called every time the job is unserialized. The addition of an unserialize() call in the constructor to get the queue property causes it to run twice because of the original call to unserialize() is in \Illuminate\Queue\CallQueuedHandler->getCommand().

CallQueuedHandler->getCommand() also implements support for encrypted command payloads.

This change brings over the encryption support logic from CallQueuedHandler->getCommand() and passed ['allowed_classes' => false] to the unserialize() call. This will make it not hydrate to the original job object, but instead to an instance of __PHP_Incomplete_Class avoiding the unnecessary call to __unserialize() with this unserialize() call. We then cast to an (array) to access the queue property without issue.

Created at 1 month ago
Support encryption, avoid double __unserialize call

I actually see there is another call to unserialize() in TaskHandler::handleTask(), I'll submit an updated PR with a fix for that one too shortly

Created at 2 months ago