Eh, PHP 5.3.2 di Lucid magic_qoutes_gpc Off

Baru nyadar, klo di Lucid nilai default magic_qoutes_gpc adalah Off, juga magic_qoutes_runtime. Pantas, dari tadi koq klo di-stripslashes() malah bermasalah :(

[source language="shell"]
; Magic quotes are a preprocessing feature of PHP where PHP will attempt to
; escape any character sequences in GET, POST, COOKIE and ENV data which might
; otherwise corrupt data being placed in resources such as databases before
; making that data available to you. Because of character encoding issues and
; non-standard SQL implementations across many databases, it's not currently
; possible for this feature to be 100% accurate. PHP's default behavior is to
; enable the feature. We strongly recommend you use the escaping mechanisms
; designed specifically for the database your using instead of relying on this
; feature. Also note, this feature has been deprecated as of PHP 5.3.0 and is
; scheduled for removal in PHP 6.
; Default Value: On
; Development Value: Off
; Production Value: Off

0 Komentar