★ wanayoo — archive 1999 https://github.com/phpDocumentor/ReflectionDocBlock/issues/251Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

...\DocBlock\Tags\Param: to string is not working for e.g. &$errno #251

Closed
voku opened this issue Aug 15, 2020 · 0 comments
Closed

...\DocBlock\Tags\Param: to string is not working for e.g. &$errno #251

voku opened this issue Aug 15, 2020 · 0 comments

Comments

@voku
Copy link
Contributor

@voku voku commented Aug 15, 2020

If I try to convert \phpDocumentor\Reflection\DocBlock\Tags\Param into string I mostly get the full string, but if there is an "&" before the variable I see nothing, is this an expected behavior or a bug?

e.g.:

        /**
         * Open Internet or Unix domain socket connection
         * @link https://php.net/manual/en/function.fsockopen.php
         * @param string $hostname <p>
         * If you have compiled in OpenSSL support, you may prefix the
         * hostname with either ssl://
         * or tls:// to use an SSL or TLS client connection
         * over TCP/IP to connect to the remote host.
         * </p>
         * @param int $port [optional] <p>
         * The port number.
         * </p>
         * @param int &$errno [optional] <p>
         * If provided, holds the system level error number that occurred in the
         * system-level connect() call.
         * </p>
         * <p>
         * If the value returned in errno is
         * 0 and the function returned false, it is an
         * indication that the error occurred before the
         * connect() call. This is most likely due to a
         * problem initializing the socket.
         * </p>
         * @param string &$errstr [optional] <p>
         * The error message as a string.
         * </p>
         * @param float $timeout [optional] <p>
         * The connection timeout, in seconds.
         * </p>
         * <p>
         * If you need to set a timeout for reading/writing data over the
         * socket, use stream_set_timeout, as the
         * timeout parameter to
         * fsockopen only applies while connecting the
         * socket.
         * </p>
         * @return resource|false fsockopen returns a file pointer which may be used
         * together with the other file functions (such as
         * fgets, fgetss,
         * fwrite, fclose, and
         * feof). If the call fails, it will return false
         */
        function fsockopen ($hostname, $port = null, &$errno = null, &$errstr = null, $timeout = null) { /** ... */ };
@voku voku changed the title \phpDocumentor\Reflection\DocBlock\Tags\Param: to string is not working for e.g. &$errno ...\DocBlock\Tags\Param: to string is not working for e.g. &$errno Aug 15, 2020
voku added a commit to voku/Simple-PHP-Code-Parser that referenced this issue Aug 16, 2020
voku added a commit to voku/ReflectionDocBlock that referenced this issue Aug 17, 2020
fix issue phpDocumentor#251
@jaapio jaapio closed this Aug 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.