php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #68305 Missing all escape chars in examples for sqlsrv_connect()
Submitted: 2014-10-25 17:10 UTC Modified: 2018-05-06 15:45 UTC
Votes:1
Avg. Score:2.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: h dot spuur at gmail dot com Assigned: cmb (profile)
Status: Closed Package: sqlsrv (PECL)
PHP Version: 5.6.2 OS: All
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: h dot spuur at gmail dot com
New email:
PHP Version: OS:

 

 [2014-10-25 17:10 UTC] h dot spuur at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.sqlsrv-connect
---

$serverName = "serverName\sqlexpress"; //serverName\instanceName

Should of course be properly escaped:

$serverName = "serverName\\sqlexpress"; //serverName\instanceName


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-05-06 15:35 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=344966
Log: Fix #68305: Missing all escape chars in examples for sqlsrv_connect()
 [2018-05-06 15:45 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2018-05-06 15:45 UTC] cmb@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2020-02-07 06:05 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=dec50f0b7ca328692733911febf052dade9decc0
Log: Fix #68305: Missing all escape chars in examples for sqlsrv_connect()
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 23:01:28 2024 UTC