@@ -192,7 +192,7 @@ static void yy_scan_buffer(const char *str, unsigned int len)
192192
193193#define ini_filename SCNG (filename)
194194
195- static zend_result init_ini_scanner(zend_ini_scanner_mode scanner_mode, zend_file_handle *fh)
195+ static void init_ini_scanner(zend_ini_scanner_mode scanner_mode, zend_file_handle *fh)
196196{
197197 SCNG (lineno) = 1 ;
198198 SCNG (scanner_mode) = scanner_mode;
@@ -206,8 +206,6 @@ static zend_result init_ini_scanner(zend_ini_scanner_mode scanner_mode, zend_fil
206206
207207 zend_stack_init (&SCNG (state_stack), sizeof (int ));
208208 BEGIN (INITIAL );
209-
210- return SUCCESS ;
211209}
212210
213211/* {{{ shutdown_ini_scanner() */
@@ -234,7 +232,6 @@ ZEND_COLD const char *zend_ini_scanner_get_filename(void)
234232}
235233/* }}} */
236234
237- /* {{{ zend_ini_open_file_for_scanning() */
238235zend_result zend_ini_open_file_for_scanning (zend_file_handle *fh, zend_ini_scanner_mode scanner_mode)
239236{
240237 char *buf;
@@ -244,27 +241,20 @@ zend_result zend_ini_open_file_for_scanning(zend_file_handle *fh, zend_ini_scann
244241 return FAILURE ;
245242 }
246243
247- if (init_ini_scanner (scanner_mode, fh) == FAILURE ) {
248- return FAILURE ;
249- }
244+ init_ini_scanner (scanner_mode, fh);
250245
251246 yy_scan_buffer (buf, (unsigned int )size);
252247
253248 return SUCCESS ;
254249}
255- /* }}} */
256250
257- zend_result zend_ini_prepare_string_for_scanning (const char *str, zend_ini_scanner_mode scanner_mode)
251+ void zend_ini_prepare_string_for_scanning (const char *str, zend_ini_scanner_mode scanner_mode)
258252{
259253 int len = (int )strlen (str);
260254
261- if (init_ini_scanner (scanner_mode, NULL ) == FAILURE ) {
262- return FAILURE ;
263- }
255+ init_ini_scanner (scanner_mode, NULL );
264256
265257 yy_scan_buffer (str, len);
266-
267- return SUCCESS ;
268258}
269259
270260/* {{{ zend_ini_escape_string() */
0 commit comments