mirror of
https://github.com/php/php-src.git
synced 2024-11-27 20:03:40 +08:00
MFH
This commit is contained in:
parent
b4f76016fd
commit
d6a4586197
@ -436,7 +436,7 @@ php_formatted_print(int ht, int *len, int use_array, int format_offset TSRMLS_DC
|
||||
if (argnum <= 0) {
|
||||
efree(result);
|
||||
efree(args);
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Argument number must be greater then zero.");
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Argument number must be greater than zero.");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -478,7 +478,7 @@ php_formatted_print(int ht, int *len, int use_array, int format_offset TSRMLS_DC
|
||||
if ((width = php_sprintf_getnumber(format, &inpos)) < 0) {
|
||||
efree(result);
|
||||
efree(args);
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Width must be greater then zero and less then %d.", INT_MAX);
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Width must be greater than zero and less than %d.", INT_MAX);
|
||||
return NULL;
|
||||
}
|
||||
adjusting |= ADJ_WIDTH;
|
||||
@ -495,7 +495,7 @@ php_formatted_print(int ht, int *len, int use_array, int format_offset TSRMLS_DC
|
||||
if ((precision = php_sprintf_getnumber(format, &inpos)) < 0) {
|
||||
efree(result);
|
||||
efree(args);
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Precision must be greater then zero and less then %d.", INT_MAX);
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Precision must be greater than zero and less than %d.", INT_MAX);
|
||||
return NULL;
|
||||
}
|
||||
adjusting |= ADJ_PRECISION;
|
||||
|
@ -24,7 +24,6 @@
|
||||
|
||||
#include "php.h"
|
||||
#include "php_globals.h"
|
||||
#include "php_ini.h"
|
||||
#include "ext/standard/info.h"
|
||||
#include "php_sysvmsg.h"
|
||||
#include "ext/standard/php_var.h"
|
||||
@ -100,16 +99,6 @@ ZEND_GET_MODULE(sysvmsg)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* {{{ PHP_INI
|
||||
*/
|
||||
/* Remove comments and fill if you need to have entries in php.ini
|
||||
PHP_INI_BEGIN()
|
||||
STD_PHP_INI_ENTRY("sysvmsg.value", "42", PHP_INI_ALL, OnUpdateLong, global_value, zend_sysvmsg_globals, sysvmsg_globals)
|
||||
STD_PHP_INI_ENTRY("sysvmsg.string", "foobar", PHP_INI_ALL, OnUpdateString, global_string, zend_sysvmsg_globals, sysvmsg_globals)
|
||||
PHP_INI_END()
|
||||
*/
|
||||
/* }}} */
|
||||
|
||||
static void sysvmsg_release(zend_rsrc_list_entry *rsrc TSRMLS_DC)
|
||||
{
|
||||
sysvmsg_queue_t * mq = (sysvmsg_queue_t *) rsrc->ptr;
|
||||
@ -288,7 +277,7 @@ PHP_FUNCTION(msg_receive)
|
||||
}
|
||||
|
||||
if (maxsize <= 0) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "maximum size of the message has to be greater then zero");
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "maximum size of the message has to be greater than zero");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user