File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ PHP_FUNCTION(sd_journal_send)
34
34
int argc , len , i ;
35
35
char * val ;
36
36
37
- if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "+" , & args , & argc ) == FAILURE ) {
38
- return NULL ;
37
+ if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "+" , & args , & argc ) != SUCCESS ) {
38
+ return ;
39
39
}
40
40
41
41
// Allocate sufficient iovector space for the arguments.
@@ -47,11 +47,11 @@ PHP_FUNCTION(sd_journal_send)
47
47
48
48
// Iterate through the PHP arguments and fill the iovector.
49
49
for (i = 0 ; i < ZEND_NUM_ARGS () TSRMLS_CC ; ++ i ) {
50
- convert_to_string_ex (args [i ]);
51
- val = Z_STRVAL_PP (args [i ]);
52
- len = Z_STRLEN_PP (args [i ]);
53
- iov [i ].iov_base = val ;
54
- iov [i ].iov_len = len ;
50
+ convert_to_string_ex (args [i ]);
51
+ val = Z_STRVAL_PP (args [i ]);
52
+ len = Z_STRLEN_PP (args [i ]);
53
+ iov [i ].iov_base = val ;
54
+ iov [i ].iov_len = len ;
55
55
}
56
56
57
57
// Send the iovector to journald.
You can’t perform that action at this time.
0 commit comments