|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-01-11 09:11 UTC] jawed@php.net
[2011-01-11 10:50 UTC] djpate at gmail dot com
[2011-01-11 13:40 UTC] jawed@php.net
[2011-01-11 18:09 UTC] datibbaw@php.net
[2011-01-12 03:13 UTC] djpate at gmail dot com
[2011-01-15 13:21 UTC] jawed@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
Description: ------------ I'm trying to implement the nonce handler but I realised that It's launched before the consumer handler. That doesnt make sense to me because If I understand this right a nonce is associed with a consumer, so making sure the consumer actually exist would be check before you check the nonce ? Reproduce code: --------------- public function consumerHandler($provider){ $this->consumer = Consumer::findByKey($provider->consumer_key) } public function checkNonce($provider){ if($this->consumer->hasNonce($provider->nonce)){ ....... } Expected result: ---------------- No error Actual result: -------------- $this->consumer is not an object since it doesnt go thru consumerHandler before