मुझे कुछ समस्याएं ठीक से चलाने के लिए phpdoc मिल रही हैं। डॉक्स सफलतापूर्वक अधिकांश भाग के लिए बनाया जा रहा है, लेकिन मैं निम्नलिखित चेतावनी कई बार मिलता है:PHPDocumentor दिनांक समस्या चेतावनियां
Warning: date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the
date_default_timezone_set
() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles
' for 'PST/-8.0/no DST' instead in /Users/ben/bin/PhpDocumentor/phpDocumentor/Converter.inc on line 5064
और
Warning: strftime(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the
date_default_timezone_set
() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles
' for 'PST/-8.0/no DST' instead in PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/Smarty_Compiler.class.php on line 370
चतुर चेतावनी मैं आसानी से कोड से हटा दें, क्योंकि यह सिर्फ एक पैदा कर रहा है प्रस्तुत दस्तावेज़ में टेम्पलेट के शीर्ष पर टाइमस्टैम्प। कोई बड़ी बात नहीं PhpDocumentor में पहली त्रुटि मुझे यकीन नहीं है। सिर्फ टेम्पलेट के लिए चतुर के लिए एक तिथि बताए किया जा रहा है:
$templ->assign("date",date("r",time()));
हो सकता है कि मैं सिर्फ चतुर टेम्पलेट्स और इस पंक्ति में सभी "तिथि" चर को दूर कर सकता है।
वैसे भी, यह चेतावनी जेनरेट किए गए दस्तावेज़ों में भी है और इंडेक्स पेज बस इस चेतावनी को प्रदर्शित करता है। कोई विचार क्या हो रहा है यहाँ? मैं संस्करण 1.4.3 का उपयोग कर रहा हूं और यहां मेरे झंडे/विकल्प हैं:
#!/usr/bin/env bash
phpdoc \
--title 'Asra Documentation' \
--directory library/Asra \
--target docs \
--defaultcategoryname Asra \
--defaultpackagename Asra \
--quiet on \
--output HTML:frames:phpedit
हां, यह सही कारण है। @ टाइपोपोनर: यह PHP 5.3 के लिए विशिष्ट समस्या है, न कि PHP कोड जो आप वास्तव में उपयोग कर रहे हैं। जब भी कोड एक PHP फ़ंक्शन को कॉल करता है जो डिफ़ॉल्ट टाइमज़ोन सेटिंग का उपयोग करता है, तो आपको एक ही समस्या हो सकती है। – kiamlaluno
आप लोग रॉक। मैंने अभी phpdoc फ़ाइल में date_default .. पर एक कॉल जोड़ा है। फिक्स्ड। – typeoneerror
यह PHP 5.2 के साथ भी होता है, यदि आपकी त्रुटि_ रिपोर्टिंग E_ALL पर सेट है। E_STRICT – djn