Skip to content

Commit cfe1d84

Browse files
author
Yasuo Ohgaki
committed
MFH
1 parent 8824153 commit cfe1d84

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sapi/roxen/roxen.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -618,12 +618,12 @@ void f_php_roxen_request_handler(INT32 args)
618618
TSRMLS_FETCH();
619619

620620
if(current_thread == th_self())
621-
error("PHP4.Interpreter->run: Tried to run a PHP-script from a PHP "
621+
php_error(E_WARNING, "PHP4.Interpreter->run: Tried to run a PHP-script from a PHP "
622622
"callback!");
623623
get_all_args("PHP4.Interpreter->run", args, "%S%m%O%*", &script,
624624
&request_data, &my_fd_obj, &done_callback);
625625
if(done_callback->type != PIKE_T_FUNCTION)
626-
error("PHP4.Interpreter->run: Bad argument 4, expected function.\n");
626+
php_error(E_WARNING, "PHP4.Interpreter->run: Bad argument 4, expected function.\n");
627627
PHP_LOCK(THIS); /* Need to lock here or reusing the same object might cause
628628
* problems in changing stuff in that object */
629629
#ifndef ROXEN_USE_ZTS
@@ -659,7 +659,7 @@ void f_php_roxen_request_handler(INT32 args)
659659
{
660660
int fd = fd_from_object(raw_fd->u.object);
661661
if(fd == -1)
662-
error("PHP4.Interpreter->run: my_fd object not open or not an FD.\n");
662+
php_error(E_WARNING, "PHP4.Interpreter->run: my_fd object not open or not an FD.\n");
663663
THIS->my_fd = fd;
664664
} else
665665
THIS->my_fd = 0;

0 commit comments

Comments
 (0)