Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Amfphp/Core/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* @package Amfphp_Core
* @author Ariel Sommeria-klein
*/
#[AllowDynamicProperties]
class Amfphp_Core_Exception extends Exception {

}
Expand Down
2 changes: 1 addition & 1 deletion Amfphp/Plugins/AmfphpErrorHandler/AmfphpErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct(array $config = null) {
* @param mixed $errcontext
* @throws Exception
*/
function custom_warning_handler($errno, $errstr, $errfile, $errline, $errcontext) {
function custom_warning_handler($errno, $errstr, $errfile = null, $errline = null, $errcontext = null) {
if ($errno & error_reporting()) {
throw new Amfphp_Core_Exception("$errstr . \n<br>file: $errfile \n<br>line: $errline \n<br>context: " . print_r($errcontext, true), $errno);
}
Expand Down
2 changes: 2 additions & 0 deletions Amfphp/Plugins/AmfphpFlexMessaging/AcknowledgeMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ class AmfphpFlexMessaging_AcknowledgeMessage {
*/
public $headers;

public $_explicitType;

/**
* constructor
* @param string $correlationId
Expand Down
2 changes: 2 additions & 0 deletions Amfphp/Plugins/AmfphpFlexMessaging/ErrorMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ class AmfphpFlexMessaging_ErrorMessage {
*/
public $rootCause;

public $_explicitType;

/**
* constructor
* @param type $correlationId
Expand Down
2 changes: 1 addition & 1 deletion Amfphp/Plugins/AmfphpGet/AmfphpGet.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function __construct(array $config = null) {
* @return this or null
*/
public function filterHandler($handler, $contentType){
if(strpos($contentType, self::CONTENT_TYPE) !== false){
if(!is_null($contentType) && strpos($contentType, self::CONTENT_TYPE) !== false){
return $this;
}
}
Expand Down
2 changes: 1 addition & 1 deletion Amfphp/Plugins/AmfphpJson/AmfphpJson.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function __construct(array $config = null) {
* @return this or null
*/
public function filterHandler($handler, $contentType) {
if (strpos($contentType, self::JSON_CONTENT_TYPE) !== false) {
if (!is_null($contentType) && strpos($contentType, self::JSON_CONTENT_TYPE) !== false) {
return $this;
}
}
Expand Down
2 changes: 1 addition & 1 deletion Amfphp/Plugins/AmfphpMonitor/AmfphpMonitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public function filterDeserializedResponse($deserializedResponse) {
* @param mixed $rawData
*/
public function filterSerializedResponse($rawData) {
if(substr($this->uri, 0, 6) == 'Amfphp'){
if(!is_null($this->uri) && substr($this->uri, 0, 6) == 'Amfphp'){
return;
}

Expand Down
1 change: 1 addition & 0 deletions Examples/Php/Vo/UserVo1.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* @package Amfphp_Examples_ExampleService
* @author Ariel Sommeria-klein
*/
#[AllowDynamicProperties]
class UserVo1 {
/**
*name
Expand Down