|
@@ 62-64 (lines=3) @@
|
| 59 |
|
{ |
| 60 |
|
$hex_guid = bin2hex($object_guid); |
| 61 |
|
$hex_guid_to_guid_str = ''; |
| 62 |
|
for ($k = 1; $k <= 4; ++$k) { |
| 63 |
|
$hex_guid_to_guid_str .= substr($hex_guid, 8 - 2 * $k, 2); |
| 64 |
|
} |
| 65 |
|
$hex_guid_to_guid_str .= '-'; |
| 66 |
|
for ($k = 1; $k <= 2; ++$k) { |
| 67 |
|
$hex_guid_to_guid_str .= substr($hex_guid, 12 - 2 * $k, 2); |
|
@@ 66-68 (lines=3) @@
|
| 63 |
|
$hex_guid_to_guid_str .= substr($hex_guid, 8 - 2 * $k, 2); |
| 64 |
|
} |
| 65 |
|
$hex_guid_to_guid_str .= '-'; |
| 66 |
|
for ($k = 1; $k <= 2; ++$k) { |
| 67 |
|
$hex_guid_to_guid_str .= substr($hex_guid, 12 - 2 * $k, 2); |
| 68 |
|
} |
| 69 |
|
$hex_guid_to_guid_str .= '-'; |
| 70 |
|
for ($k = 1; $k <= 2; ++$k) { |
| 71 |
|
$hex_guid_to_guid_str .= substr($hex_guid, 16 - 2 * $k, 2); |
|
@@ 70-72 (lines=3) @@
|
| 67 |
|
$hex_guid_to_guid_str .= substr($hex_guid, 12 - 2 * $k, 2); |
| 68 |
|
} |
| 69 |
|
$hex_guid_to_guid_str .= '-'; |
| 70 |
|
for ($k = 1; $k <= 2; ++$k) { |
| 71 |
|
$hex_guid_to_guid_str .= substr($hex_guid, 16 - 2 * $k, 2); |
| 72 |
|
} |
| 73 |
|
$hex_guid_to_guid_str .= '-' . substr($hex_guid, 16, 4); |
| 74 |
|
$hex_guid_to_guid_str .= '-' . substr($hex_guid, 20); |
| 75 |
|
return strtoupper($hex_guid_to_guid_str); |