]> granicus.if.org Git - php/commitdiff
- Fix segfault
authorFelipe Pena <felipe@php.net>
Sat, 21 Jun 2008 23:20:40 +0000 (23:20 +0000)
committerFelipe Pena <felipe@php.net>
Sat, 21 Jun 2008 23:20:40 +0000 (23:20 +0000)
ext/standard/pack.c

index dd3eb272fc919d0a1f0917012902fc56f9efa48b..05204094c3bc3ca8c26febf72c4b084256bf4f62 100644 (file)
@@ -121,6 +121,8 @@ PHP_FUNCTION(pack)
                return;
        }
 
+       convert_to_string_ex(argv[0]);
+
        format = Z_STRVAL_PP(argv[0]);
        formatlen = Z_STRLEN_PP(argv[0]);