tempnam(): warnings in error_log

71 views
Skip to first unread message

dsm...@countercube.com

unread,
Mar 18, 2021, 9:54:12 AM3/18/21
to PHRETS
I am getting this warning written to an error file every time the CRON runs a particular script.  

[18-Mar-2021 07:01:03 America/New_York] PHP Notice:  tempnam(): file created in the system's temporary directory in /home/counter/public_html/vendor/troydavisson/phrets/src/Session.php on line 547

Does anyone know how I can stop this?  

Thanks

dsm...@countercube.com

unread,
Mar 18, 2021, 10:25:28 AM3/18/21
to PHRETS
The original code in the sessions.php was this.           

 'curl' => [ CURLOPT_COOKIEFILE => tempnam('/tmp', 'phrets') ]

It was throwing errors in PHP 7  so under the advisement of someone on this group, I changed it to this...

'curl' => [ CURLOPT_COOKIEFILE => tempnam(sys_get_temp_dir(), 'phrets') ]

Now I am getting the new error after several month of working fine.
Reply all
Reply to author
Forward
0 new messages