|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-11-26 15:03 UTC] remi@php.net
[2015-11-26 15:04 UTC] remi@php.net
-Status: Open
+Status: Feedback
[2015-12-06 04:22 UTC] pecl-dev at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 09:00:02 2025 UTC |
Description: ------------ Index: win32service.c =================================================================== --- win32service.c (revision 337426) +++ win32service.c (working copy) @@ -472,7 +472,7 @@ RETURN_FALSE; } - hmgr = OpenSCManager(machine, NULL, SC_MANAGER_ALL_ACCESS); + hmgr = OpenSCManager(machine, NULL, SC_MANAGER_CONNECT); if (hmgr) { hsvc = OpenService(hmgr, service, SERVICE_START); if (hsvc) { @@ -503,7 +503,7 @@ RETURN_FALSE; } - hmgr = OpenSCManager(machine, NULL, SC_MANAGER_ALL_ACCESS); + hmgr = OpenSCManager(machine, NULL, SC_MANAGER_CONNECT); if (hmgr) { hsvc = OpenService(hmgr, service, access); if (hsvc) { Test script: --------------- metriclogs { triggerTime: 1447813677228 triggerId: 655363 profileId: 679242 locationUpdateSession { timestamp: 1447813676896 timestampEnd: 1447813677222 desiredAccuracy: -1 cellAvailable: true wifiAvailable: false passcodeLocked: false airplaneMode: false ttff: 0 ttffGps: -1 bundleid: "com.toyopagroup.picaboo" achievedAccuracy: 2000 achievedSpeed: -1 accessoryUsed: false reachability: 1 powered: false autoStopped: false deferredLocations: 0 gpsCoexWifi: 0 gpsCoexBt: 0 Expected result: ---------------- Backfire Actual result: -------------- Yes like that