@@ -227,7 +227,7 @@ static int php_swoole_onReceive(swFactory *factory, swEventData *req)
227
227
}
228
228
if (EG (exception ))
229
229
{
230
- zend_exception_error (EG (exception ), E_WARNING TSRMLS_CC );
230
+ zend_exception_error (EG (exception ), E_ERROR TSRMLS_CC );
231
231
}
232
232
zval_ptr_dtor (& zfd );
233
233
zval_ptr_dtor (& zfrom_id );
@@ -297,7 +297,7 @@ static int php_swoole_onTask(swServer *serv, swEventData *req)
297
297
298
298
if (EG (exception ))
299
299
{
300
- zend_exception_error (EG (exception ), E_WARNING TSRMLS_CC );
300
+ zend_exception_error (EG (exception ), E_ERROR TSRMLS_CC );
301
301
}
302
302
303
303
zval_ptr_dtor (& zfd );
@@ -363,7 +363,7 @@ static int php_swoole_onFinish(swServer *serv, swEventData *req)
363
363
}
364
364
if (EG (exception ))
365
365
{
366
- zend_exception_error (EG (exception ), E_WARNING TSRMLS_CC );
366
+ zend_exception_error (EG (exception ), E_ERROR TSRMLS_CC );
367
367
}
368
368
zval_ptr_dtor (& ztask_id );
369
369
zval_ptr_dtor (& zdata );
@@ -396,7 +396,7 @@ static void php_swoole_onStart(swServer *serv)
396
396
}
397
397
if (EG (exception ))
398
398
{
399
- zend_exception_error (EG (exception ), E_WARNING TSRMLS_CC );
399
+ zend_exception_error (EG (exception ), E_ERROR TSRMLS_CC );
400
400
}
401
401
if (retval != NULL )
402
402
{
@@ -421,7 +421,7 @@ static void php_swoole_onManagerStart(swServer *serv)
421
421
}
422
422
if (EG (exception ))
423
423
{
424
- zend_exception_error (EG (exception ), E_WARNING TSRMLS_CC );
424
+ zend_exception_error (EG (exception ), E_ERROR TSRMLS_CC );
425
425
}
426
426
if (retval != NULL )
427
427
{
@@ -446,7 +446,7 @@ static void php_swoole_onManagerStop(swServer *serv)
446
446
}
447
447
if (EG (exception ))
448
448
{
449
- zend_exception_error (EG (exception ), E_WARNING TSRMLS_CC );
449
+ zend_exception_error (EG (exception ), E_ERROR TSRMLS_CC );
450
450
}
451
451
if (retval != NULL )
452
452
{
@@ -475,7 +475,7 @@ static void php_swoole_onTimer(swServer *serv, int interval)
475
475
}
476
476
if (EG (exception ))
477
477
{
478
- zend_exception_error (EG (exception ), E_WARNING TSRMLS_CC );
478
+ zend_exception_error (EG (exception ), E_ERROR TSRMLS_CC );
479
479
}
480
480
zval_ptr_dtor (& zinterval );
481
481
if (retval != NULL )
@@ -500,7 +500,7 @@ static void php_swoole_onShutdown(swServer *serv)
500
500
}
501
501
if (EG (exception ))
502
502
{
503
- zend_exception_error (EG (exception ), E_WARNING TSRMLS_CC );
503
+ zend_exception_error (EG (exception ), E_ERROR TSRMLS_CC );
504
504
}
505
505
if (retval != NULL )
506
506
{
@@ -553,7 +553,7 @@ static void php_swoole_onWorkerStart(swServer *serv, int worker_id)
553
553
}
554
554
if (EG (exception ))
555
555
{
556
- zend_exception_error (EG (exception ), E_WARNING TSRMLS_CC );
556
+ zend_exception_error (EG (exception ), E_ERROR TSRMLS_CC );
557
557
}
558
558
559
559
zval_ptr_dtor (& zworker_id );
@@ -585,9 +585,8 @@ static void php_swoole_onWorkerStop(swServer *serv, int worker_id)
585
585
}
586
586
if (EG (exception ))
587
587
{
588
- zend_exception_error (EG (exception ), E_WARNING TSRMLS_CC );
588
+ zend_exception_error (EG (exception ), E_ERROR TSRMLS_CC );
589
589
}
590
-
591
590
zval_ptr_dtor (& zworker_id );
592
591
if (retval != NULL )
593
592
{
@@ -624,9 +623,10 @@ static void php_swoole_onWorkerError(swServer *serv, int worker_id, pid_t worker
624
623
{
625
624
php_error_docref (NULL TSRMLS_CC , E_WARNING , "swoole_server: onWorkerError handler error" );
626
625
}
626
+
627
627
if (EG (exception ))
628
628
{
629
- zend_exception_error (EG (exception ), E_WARNING TSRMLS_CC );
629
+ zend_exception_error (EG (exception ), E_ERROR TSRMLS_CC );
630
630
}
631
631
632
632
zval_ptr_dtor (& zworker_id );
@@ -666,7 +666,7 @@ static void php_swoole_onConnect(swServer *serv, int fd, int from_id)
666
666
}
667
667
if (EG (exception ))
668
668
{
669
- zend_exception_error (EG (exception ), E_WARNING TSRMLS_CC );
669
+ zend_exception_error (EG (exception ), E_ERROR TSRMLS_CC );
670
670
}
671
671
672
672
zval_ptr_dtor (& zfd );
@@ -708,7 +708,7 @@ static void php_swoole_onClose(swServer *serv, int fd, int from_id)
708
708
709
709
if (EG (exception ))
710
710
{
711
- zend_exception_error (EG (exception ), E_WARNING TSRMLS_CC );
711
+ zend_exception_error (EG (exception ), E_ERROR TSRMLS_CC );
712
712
}
713
713
714
714
zval_ptr_dtor (& zfd );
@@ -869,7 +869,6 @@ PHP_FUNCTION(swoole_server_set)
869
869
serv -> worker_num = SwooleG .cpu_num ;
870
870
}
871
871
}
872
-
873
872
//task_worker_num
874
873
if (zend_hash_find (vht , ZEND_STRS ("task_worker_num" ), (void * * )& v ) == SUCCESS )
875
874
{
@@ -913,10 +912,6 @@ PHP_FUNCTION(swoole_server_set)
913
912
convert_to_long (* v );
914
913
serv -> max_request = (int ) Z_LVAL_PP (v );
915
914
}
916
- else if (serv -> factory_mode == SW_MODE_SINGLE )
917
- {
918
- serv -> max_request = 0 ;
919
- }
920
915
//task_max_request
921
916
if (zend_hash_find (vht , ZEND_STRS ("task_max_request" ), (void * * ) & v ) == SUCCESS )
922
917
{
0 commit comments