[OpenSIPS-Users] OPENSIPS_CP DIALPLAN

Jeff Wilkie jwilkie at usipcom.com
Tue Aug 30 16:08:43 CEST 2016


So reading the following:

*Parameters*

*unescaped_string*

The string that is to be escaped.
*link_identifier*

The MySQL connection. If the link identifier is not specified, the last
link opened by mysql_connect
<https://dev.mysql.com/doc/apis-php/en/apis-php-function.mysql-connect.html> is
assumed. If no such link is found, it will try to create one as if
mysql_connect
<https://dev.mysql.com/doc/apis-php/en/apis-php-function.mysql-connect.html>
had
been called with no arguments. If no connection is found or established, an
E_WARNING level error is generated.

*Return Values*

Returns the escaped string, or FALSE on error.

*Errors/Exceptions*

Executing this function without a MySQL connection present will also emit
E_WARNING level PHP errors. Only execute this function with a valid MySQL
connection present.
I decided to remove the $link from each of the sections under the "modify"
portion of the code.  Assuming since in the code we call the DB connection
in the include statement anyway, the $link should already be established
and able to be assumed.  The code executes as expected with no warnings.
This does not tell me why is doesn't work yet but it does tell me that the
connection to the DB is established and working as expected along with the
code minus this one parameter.

I checked all of my patch versions and PDO with mysqli shouldn't be
required until 5.5 where I'm on 5.3.  Using PDO would have me rewriting
this entire section I would think.

Thanks

Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160830/b8975e30/attachment.htm>


More information about the Users mailing list