swaschkut / pan-os-php

Framework and utilities to easily manage and edit Palo Alto Network PANOS devices
ISC License
16 stars 1 forks source link

"deprecated" function in the rule copying code #18

Closed ngfw-automation closed 4 months ago

ngfw-automation commented 4 months ago

When rules are copied from one device group to another and the destination device group already has a rule with the name identical to one being copied a message as follows appears:

...
   - object '<name of the rule>'  passing through Action='copy' Args: location=<destination device group>, preORpost=post,
PHP Deprecated:  Increment on non-alphanumeric string is deprecated in /tools/pan-os-php/lib/rule-classes/RuleStore.php on line 534 
...

The script continues copying after the message (which is good!), so I don't know how serious this problem might be.

swaschkut commented 4 months ago

thanks for this finding.

there are now two different develop containers available:

docker push swaschkut/pan-os-php:develop

and as discussed one with ubuntu 24.0.10 docker push swaschkut/pan-os-php:develop_ubuntu24_10

for your information, my email was blocked during send, check your slack, there is a PDF available for you

swaschkut commented 4 months ago

fixed in version 2.1.25

21