From: Operating system: multiple PHP version: 5.3.7RC3 Package: *General Issues Bug Type: Bug Bug description:wrong use efree(NULL) in intl
Description: ------------ intl_convert_utf8_to_utf16() is wrong used in a multiple points. Example 165 intl_convert_utf8_to_utf16(&uhaystack, &uhaystack_len, (char *) haystack, haystack_len, &status ); 166 167 if ( U_FAILURE( status ) ) { 168 /* Set global error code. */ 169 intl_error_set_code( NULL, status TSRMLS_CC ); 170 171 /* Set error messages. */ 172 intl_error_set_custom_msg( NULL, "Error converting input string to UTF-16", 0 TSRMLS_CC ); 173 efree( uhaystack ); 174 return -1; 175 } efree() call to uhaystack => (efree(NULL)). sometime 'uhaystack' may be NULL. It's a multiple problem in intl. Then efree() print error -- Edit bug report at https://bugs.php.net/bug.php?id=55296&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55296&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55296&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55296&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55296&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55296&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55296&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55296&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55296&r=needscript Try newer version: https://bugs.php.net/fix.php?id=55296&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55296&r=support Expected behavior: https://bugs.php.net/fix.php?id=55296&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55296&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55296&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55296&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55296&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=55296&r=dst IIS Stability: https://bugs.php.net/fix.php?id=55296&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55296&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55296&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55296&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55296&r=mysqlcfg