summaryrefslogtreecommitdiff
path: root/ext/com_dotnet/tests
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2019-02-15 00:39:10 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2019-02-15 00:39:10 +0100
commitc62e1066103f7a126c8b7e1247d89cac2d230cc0 (patch)
tree123f4797b21a2ec9af589e54a89bfdbc3a81840d /ext/com_dotnet/tests
parentfee9f3a8f45e9bc8a85baac07f4852464a752551 (diff)
parent8946ad30009af055b5b2fed3044e61c78b7d77fb (diff)
downloadphp-git-c62e1066103f7a126c8b7e1247d89cac2d230cc0.tar.gz
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Fix #77621: Already defined constants are not properly reported
Diffstat (limited to 'ext/com_dotnet/tests')
-rw-r--r--ext/com_dotnet/tests/bug77621.phpt18
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/com_dotnet/tests/bug77621.phpt b/ext/com_dotnet/tests/bug77621.phpt
new file mode 100644
index 0000000000..5c24494637
--- /dev/null
+++ b/ext/com_dotnet/tests/bug77621.phpt
@@ -0,0 +1,18 @@
+--TEST--
+Bug #77621 (Already defined constants are not properly reported)
+--SKIPIF--
+<?php
+if (!extension_loaded('com_dotnet')) die('skip com_dotnet extension not available');
+?>
+--INI--
+com.autoregister_verbose=1
+--FILE--
+<?php
+define('ADSTYPE_INVALID', 0);
+$root = dirname(array_change_key_case($_SERVER, CASE_UPPER)['COMSPEC']);
+com_load_typelib("$root\activeds.tlb");
+?>
+===DONE===
+--EXPECTF--
+Warning: com_load_typelib(): Type library constant ADSTYPE_INVALID is already defined in %s on line %d
+===DONE===