pajoye Thu, 20 Jan 2011 06:54:28 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=307615
Log:
- fail when no known op are given
Changed paths:
U php/php-src/branches/PHP_5_3/ext/com_dotnet/com_variant.c
U php/php-src/trunk/ext/com_dotnet/com_variant.c
Modified: php/php-src/branches/PHP_5_3/ext/com_dotnet/com_variant.c
===================================================================
--- php/php-src/branches/PHP_5_3/ext/com_dotnet/com_variant.c 2011-01-20
06:49:17 UTC (rev 307614)
+++ php/php-src/branches/PHP_5_3/ext/com_dotnet/com_variant.c 2011-01-20
06:54:28 UTC (rev 307615)
@@ -593,6 +593,9 @@
case VOP_XOR:
result = VarXor(vleft, vright, &vres);
break;
+ /*Let say it fails as no valid op has been given */
+ default:
+ result = E_INVALIDARG;
}
if (SUCCEEDED(result)) {
Modified: php/php-src/trunk/ext/com_dotnet/com_variant.c
===================================================================
--- php/php-src/trunk/ext/com_dotnet/com_variant.c 2011-01-20 06:49:17 UTC
(rev 307614)
+++ php/php-src/trunk/ext/com_dotnet/com_variant.c 2011-01-20 06:54:28 UTC
(rev 307615)
@@ -593,6 +593,9 @@
case VOP_XOR:
result = VarXor(vleft, vright, &vres);
break;
+ /*Let say it fails as no valid op has been given */
+ default:
+ result = E_INVALIDARG;
}
if (SUCCEEDED(result)) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php