felipe          Sat Jun 21 23:20:40 2008 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/standard       pack.c 
  Log:
  - Fix segfault
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/pack.c?r1=1.57.2.5.2.6.2.3&r2=1.57.2.5.2.6.2.4&diff_format=u
Index: php-src/ext/standard/pack.c
diff -u php-src/ext/standard/pack.c:1.57.2.5.2.6.2.3 
php-src/ext/standard/pack.c:1.57.2.5.2.6.2.4
--- php-src/ext/standard/pack.c:1.57.2.5.2.6.2.3        Fri Jun 20 20:54:32 2008
+++ php-src/ext/standard/pack.c Sat Jun 21 23:20:40 2008
@@ -15,7 +15,7 @@
    | Author: Chris Schneider <[EMAIL PROTECTED]>                          |
    +----------------------------------------------------------------------+
  */
-/* $Id: pack.c,v 1.57.2.5.2.6.2.3 2008/06/20 20:54:32 davidc Exp $ */
+/* $Id: pack.c,v 1.57.2.5.2.6.2.4 2008/06/21 23:20:40 felipe Exp $ */
 
 #include "php.h"
 
@@ -121,6 +121,8 @@
                return;
        }
 
+       convert_to_string_ex(argv[0]);
+
        format = Z_STRVAL_PP(argv[0]);
        formatlen = Z_STRLEN_PP(argv[0]);
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to