Are you sure this patch is right? It seems a bit odd. You shouldn't really 
have NULL pointers in strings which are passed to convert_to_string_ex().

Andi

At 11:40 PM 4/22/2001 +0000, Sterling Hughes wrote:
>sterling                Sun Apr 22 16:40:34 2001 EDT
>
>   Modified files:
>     /php4/ext/ccvs      ccvs.c
>   Log:
>   Fix bug #10447.
>
>
>
>
>Index: php4/ext/ccvs/ccvs.c
>diff -u php4/ext/ccvs/ccvs.c:1.13 php4/ext/ccvs/ccvs.c:1.14
>--- php4/ext/ccvs/ccvs.c:1.13   Sun Feb 25 22:06:48 2001
>+++ php4/ext/ccvs/ccvs.c        Sun Apr 22 16:40:34 2001
>@@ -17,7 +17,7 @@
>     +----------------------------------------------------------------------+
>   */
>  /*
>-*      cvvs.c $Revision: 1.13 $ - PHP4 Interface to the RedHat CCVS API
>+*      cvvs.c $Revision: 1.14 $ - PHP4 Interface to the RedHat CCVS API
>  *      -------
>  *      Interfaces RedHat's CCVS [Credit Card Verification System] 
> <http://www.redhat.com/products/ccvs/>
>  *      This code is ported from an original php3 interface written by 
> RedHat's Doug DeJulio <[EMAIL PROTECTED]>
>@@ -27,10 +27,10 @@
>
>  /*
>  *      Code started on [EMAIL PROTECTED] by Brendan W. McAdams 
> <[EMAIL PROTECTED]>
>-*      $Revision: 1.13 $
>+*      $Revision: 1.14 $
>  */
>
>-static char const cvsid[] = "$Id: ccvs.c,v 1.13 2001/02/26 06:06:48 andi 
>Exp $";
>+static char const cvsid[] = "$Id: ccvs.c,v 1.14 2001/04/22 23:40:34 
>sterling Exp $";
>
>  #include <php.h>
>  #include <stdlib.h>
>@@ -193,6 +193,11 @@
>    }
>
>    convert_to_string_ex(psess);
>+  if (!Z_STRVAL_PP(psess)) {
>+    php_error(E_WARNING, "Invalid session to ccvs_new()");
>+    RETURN_FALSE;
>+  }
>+
>    sess = hks_ptr_stringtoptr((*psess)->value.str.val);
>
>    convert_to_string_ex(pinvoice);
>
>
>
>--
>PHP CVS Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to