|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-12-04 01:46 UTC] jayron_castro at hotmail dot com
Description:
------------
when the option below is active error it always happens in the script:
zend.ze1_compatibility_mode = On
ATTENTION:
the only solution is to incapacitate:
zend.ze1_compatibility_mode = Off
Reproduce code:
---------------
$ocodaut = new COM("JaccGeraCod.cCripCod") or die("objeto n?o instanciado");
$vl_codaut = $ocodaut->Autorizacao(7075,12,12,101,50);
echo "codigo: $vl_codaut";
Expected result:
----------------
teste: 00280282528
Actual result:
--------------
PHP has encountered an Access Violation at 0178F6B4
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 20:00:02 2025 UTC |
code: $objLocator = new COM("WbemScripting.SWbemLocator"); $this->wmi = $objLocator->ConnectServer(); result: Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> SWbemLocator<br/><b>Description:</b> Access denied ' in F:\test.php:36 Stack trace: #0 F:\test.php(36): com->ConnectServer() #1 F:\test.php(333): sysinfo->sysinfo() #2 {main} thrown in F:\test.php on line 36 --------- same code works on a win2000 box.