Skip to content

Commit

Permalink
Fixed a bug of HproseService.
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Apr 10, 2015
1 parent d8b7519 commit bcec0f2
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ temp
vendor
composer.phar
composer.lock
/netbeans/nbproject/private/
7 changes: 5 additions & 2 deletions Hprose/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@
* *
* hprose service class for php 5.3+ *
* *
* LastModified: Apr 8, 2015 *
* LastModified: Apr 10, 2015 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/

namespace Hprose {

define('HPROSE_DEFAULT_ERROR_TYPES', E_ALL & ~E_NOTICE);

class RemoteCall {
public $func;
public $mode;
Expand Down Expand Up @@ -85,7 +88,7 @@ abstract class Service {
private $filters = array();
private $simple = false;
protected $debug = false;
protected $error_types = E_ALL & ~E_NOTICE;
protected $error_types = HPROSE_DEFAULT_ERROR_TYPES;
public $onBeforeInvoke = null;
public $onAfterInvoke = null;
public $onSendError = null;
Expand Down
7 changes: 7 additions & 0 deletions netbeans/nbproject/project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
include.path=${php.global.include.path}
php.version=PHP_53
source.encoding=UTF-8
src.dir=..
tags.asp=false
tags.short=false
web.root=.
9 changes: 9 additions & 0 deletions netbeans/nbproject/project.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.php.project</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/php-project/1">
<name>hprose-php</name>
</data>
</configuration>
</project>

0 comments on commit bcec0f2

Please sign in to comment.