|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-02-26 04:16 UTC] pajoye@php.net
-Status: Open
+Status: Not a bug
[2013-02-26 04:16 UTC] pajoye@php.net
[2013-02-28 16:05 UTC] anon at anon dot anon
[2013-02-28 16:14 UTC] andrew dot mof at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 16:00:01 2025 UTC |
Description: ------------ 99% sure this is a bug. This code works fine when apache runs it but when I run it though CLI it doesnt see the variable. That said, this work: $GLOBALS['jobID'] = 123; Test script: --------------- #!/usr/bin/php <?php // In my script this function is included in a seperate file function addLine() { global $jobID; echo $jobID; } $jobID = 123; addLine();