Perl Question

Support and queries relating to all previous versions of ZoneMinder
Locked
RobinQi
Posts: 14
Joined: Thu Oct 02, 2008 4:29 pm

Perl Question

Post by RobinQi »

Hi! All: I just upgraded to v1.23.3. Then zmfilter.pl failed to work. After investigation I found the issue is zmfilter.pl cannot locate PHP:Serialization. I did install PHP, but it's in a local directory. I thought by putting the local directory into $PERLLIB and $PERL5LIB should make it visible to zmfilter.pl. However I noticed the first line in zmfilter.pl is:
#!/usr/bin/perl -wT

That -T is the one caused the trouble. Somehow when I specify -T, perl doesnot search $PERLLIB or $PERL5LIB. If I take it out, zmfilter.pl runs smoothly.

For now I have to copy the PHP:Serialization module to a system perl directory.

I am no perl expert. Just wondering, can I take that -T out? What does it do?
kevin_robson
Posts: 247
Joined: Sun Jan 16, 2005 11:26 am

Post by kevin_robson »

I'm no expert either, but I think the term to google is 'perl tainting'
I'm sure someone more knowledgable will provide further info
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

RobinQi
Posts: 14
Joined: Thu Oct 02, 2008 4:29 pm

Post by RobinQi »

Thanks. it's a security feature.
Locked