|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2013-02-23 11:19 UTC] pollita@php.net
  [2013-02-23 11:19 UTC] pollita@php.net
 
-Status:      Open
+Status:      Closed
-Assigned To:
+Assigned To: pollita
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 23:00:01 2025 UTC | 
Description: ------------ runkit_import.c defines two variables on lines 65 and 66 after actual code. Although it's not required by Ansi C, gcc compiles that case fine (unless the -pedantic switch is passed), but other compilers (eg. Visual C++) doesn't. In order to build it with Visual C++ you need to declare the variable before: Index: runkit_import.c =================================================================== RCS file: /repository/pecl/runkit/runkit_import.c,v retrieving revision 1.11 diff -u -r1.11 runkit_import.c --- runkit_import.c 5 May 2008 04:28:34 -0000 1.11 +++ runkit_import.c 18 Aug 2008 17:09:33 -0000 @@ -59,11 +59,13 @@ } if (add_function) { + char *lcase; + int lcase_len; PHP_RUNKIT_FUNCTION_ADD_REF(fe); - char *lcase = estrdup(fe->common.function_name); - int lcase_len = strlen(lcase); + lcase = estrdup(fe->common.function_name); + lcase_len = strlen(lcase); php_strtolower(lcase, lcase_len); if (zend_hash_add(EG(function_table), lcase, lcase_len + 1, fe, sizeof(zend_function), NULL) == FAILURE) {