TSRMLS_FETCH();
if(current_thread == th_self())
- error("PHP4.Interpreter->run: Tried to run a PHP-script from a PHP "
+ php_error(E_WARNING, "PHP4.Interpreter->run: Tried to run a PHP-script from a PHP "
"callback!");
get_all_args("PHP4.Interpreter->run", args, "%S%m%O%*", &script,
&request_data, &my_fd_obj, &done_callback);
if(done_callback->type != PIKE_T_FUNCTION)
- error("PHP4.Interpreter->run: Bad argument 4, expected function.\n");
+ php_error(E_WARNING, "PHP4.Interpreter->run: Bad argument 4, expected function.\n");
PHP_LOCK(THIS); /* Need to lock here or reusing the same object might cause
* problems in changing stuff in that object */
#ifndef ROXEN_USE_ZTS
{
int fd = fd_from_object(raw_fd->u.object);
if(fd == -1)
- error("PHP4.Interpreter->run: my_fd object not open or not an FD.\n");
+ php_error(E_WARNING, "PHP4.Interpreter->run: my_fd object not open or not an FD.\n");
THIS->my_fd = fd;
} else
THIS->my_fd = 0;