473,394 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Problems with phpdoc and @global

I have a number of global variables declared, like so:

/**
* @global string $GLOBALS['foo']
* @name $foo
*/
$GLOBALS['foo'] = 'something';

/**
* @global string $GLOBALS['bar']
* @name $bar
*/
$GLOBALS['bar'] = 'something else';

/**
* @global array $GLOBALS['myarray']
* @name $myarray
*/
$GLOBALS['myarray'] = array();

Then in my function DocBlock I have:

/**
* function description
*
* @global string Description of $foo
* @global string Description of $bar
*/
function do_stuff() {
global $foo;
global $bar;
}

Or else:

/**
* Other function
*
* @global string $bar Description of $bar
* @global array $myarray Description of $myarray
*/
function do_other_stuff() {
global $foo;
global $myarray;
}

But in the documentation produced, I have output like this for
do_stuff() (note the reversed order of the descriptions):

* global: string 1: Description of $bar
* global: string $foo$bar: Description of $foo

And like this for do_other_stuff():

* global: array 1: Description of $myarray
* global: string $bar$myarray: Description of $bar

Does anyone have any idea why this might be happening? What am I doing
wrong?

Thanks for your help!

Jul 17 '05 #1
0 1371

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

88
by: Tim Tyler | last post by:
PHP puts most of its functions into a big flat global namespace. That leads to short function names - but creates a namespace minefield for programmers. Lots of the functions are legacies from...
0
by: pavana | last post by:
Hi, I have a class with a constructor which does some socket initialisation. I need to call the constructor before the dll is loaded. For this, I do something like this in the code (written in...
1
by: Gregor | last post by:
I'm having problems accessing a global array variable from within a function. I have something like this: ------------------------------------ var detail = new Array( 20 ); detail = "hello"; ...
6
by: Bob Darlington | last post by:
I have an Access XP app running over TS with Windows 2000 Server. There are 5 sites (each with 3 or 4 users) accessing the data file, and each has its own front end mde on the server. The mde's...
18
by: vib | last post by:
Hi there, By chance, I came to learn that it is bad programming practice to initialize global variables at outside of programs. Is it that bad? In order to fullfil this, I had to declare them...
2
by: Craig G | last post by:
we have a project which is kept in SourceSafe but when "Get Latest Version" on a fresh development machine and try and run the project i get the following error Parser Error Description: An...
1
by: Daniel Friend | last post by:
I am trying to add the following as my global.asax file in vb. I am getting errors like crazy. They are as follows * Error 1 There can be only one 'application' directive. * Error 4 Validation...
2
by: kashif456 | last post by:
Hi, I am trying to deploy a third party object into GAC and seeing some errors. Below is the code I have added in web.config Code: <httpHandlers> <add verb="*" path="LanapCaptchaImage.aspx"...
22
by: raashid bhatt | last post by:
Hi. Consider the Following Code. ========================================================================= #include <stdio.h> #include <string.h> /* For these Variables The Linker Only...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.